

/* =======================================================
   GLOBAL
   ======================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
     font-family: 'Inter', sans-serif;
    /*font-family: 'Montserrat', Arial, sans-serif;*/
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}


/* =======================================================
   MAIN CONTENT
   ======================================================= */

main {
    max-width: 600px;
    margin: 0 auto;
}

main p {
    line-height: 1.7;
    font-size: 16px;
    color: #333;
}


/* =======================================================
   MISSION BOX
   ======================================================= */

.mission-box {
    background: #fff;
    padding: 1px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

    padding-left: 1px !important;
    padding-right: 1px !important;
}

.mission-box > .row {
    margin-left: 0;
    margin-right: 0;
}



/* =======================================================
   HEADINGS
   ======================================================= */

h1 {
    /*font-family: 'Montserrat', Arial, sans-serif;
      font-family: 'Poppins', sans-serif;*/
       font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 10px;
}

h2,
h3,
h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 3px;
    margin-bottom: 15px;
}

h5,
h6 {
    /*font-family: 'Montserrat', Arial, sans-serif;*/
     font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 15px;
}


/* =======================================================
   SECTION TITLES
   ======================================================= */

.section-title {
    position: relative;
    border-top: 5px solid #7B68EE;
    margin: 20px 0 25px;
    min-height: 32px;
}

.section-title span {
    display: inline-block;
    position: relative;
    background: #7B68EE;
    color: #fff;
    padding: 5px 20px;
    font-weight: 700;
    line-height: 22px;
    min-height: 32px;
}

.section-title span::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 10px solid #7B68EE;
}


/* =======================================================
   CONTAINER
   ======================================================= */

.container {
    width: 98%;
    max-width: 98% !important;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .container {
        width: 99%;
        max-width: 99% !important;
    }
}


/* =======================================================
   VIDEO SECTIONS
   ======================================================= */

.left-video {
    height: 200px;
    overflow: hidden;
}

.right-videos .small-videos-wrapper {
    max-height: 250px;
    overflow-y: auto;
}


/* =======================================================
   CATEGORY STRIP
   ======================================================= */

.category-strip {
    position: sticky;
    top: 0;
    z-index: 9990;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 10px 20px;

    background: #fff;

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    scrollbar-width: thin;

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.category-strip::-webkit-scrollbar {
    height: 5px;
}

.category-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.category-strip.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}


/* =======================================================
   CATEGORY LINKS
   ======================================================= */

.category-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 2px 14px;

    border-radius: 20px;

    background: #f4f6f9;
    color: #000;

    font-weight: 600;
    font-size: 14px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.category-strip a:hover {
    background: #7B68EE;
    color: #fff;
    transform: translateY(-1px);
}

.category-strip a:focus-visible {
    outline: 3px solid rgba(123, 104, 238, 0.35);
    outline-offset: 2px;
}


/* =======================================================
   CATEGORY DOT
   ======================================================= */

.dot {
    display: inline-block;

    width: 10px;
    height: 10px;

    margin-right: 6px;

    background: #7B68EE;
    border-radius: 50%;

    flex-shrink: 0;
}


/* =======================================================
   STICKY LOGO
   ======================================================= */

/* Малкото лого е скрито по подразбиране */
.sticky-logo {
    display: none !important;
    flex: 0 0 auto;
    margin-right: 20px;
}

.sticky-logo img {
    display: block;
    height: 35px;
    width: auto;
}

/* Показва се САМО след скрол */
.category-strip.scrolled .sticky-logo {
    display: block !important;
}

.category-strip.scrolled .sticky-logo {
    display: block;
}


/* =======================================================
   HIDE ON SCROLL
   ======================================================= */

.hide-on-scroll {
    transition: transform 0.3s ease;
}

.hide {
    transform: translateY(-100%);
}


/* =======================================================
   TOP BAR
   ======================================================= */

.topbar {
    width: 100%;
    background: #f1f1f1;
    padding: 8px 15px;
    font-size: 14px;
    line-height: 1.4;
}


/* =======================================================
   CATEGORY BADGE
   ======================================================= */

.cat-badge {
    display: inline-block;

    font-size: .8rem;
    font-weight: 600;

    color: #7B68EE;

    padding: 2px 6px;
    margin-bottom: 5px;
    
    border: 0px;

}


/* =======================================================
   HAMBURGER BUTTON
   ======================================================= */
.hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 28px;
    min-height: 28px;

    padding: 0 12px;

    background: #7B68EE;
    color: #fff;

    border: none;
    border-radius: 6px;

    font-size: 14px;
    line-height: 1;

    cursor: pointer;

    transition: background 0.2s ease;
}

.hamburger-btn:hover {
    background: #6956d8;
}

.hamburger-btn:focus-visible {
    outline: 3px solid rgba(123, 104, 238, 0.35);
    outline-offset: 2px;
}


/* =======================================================
   MOBILE SLIDE MENU
   ======================================================= */

.mobile-slide-menu {
    position: fixed;

    top: 0;
    left: -280px;

    width: 260px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;

    padding-top: 15px;

    background: #fff;

    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);

    z-index: 10001;

    overflow-y: auto;

    transition: left 0.3s ease;
}

.mobile-slide-menu.active {
    left: 0;
}


/* =======================================================
   MOBILE MENU HEADER
   ======================================================= */

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 6px 15px;

    font-weight: 700;

    border-bottom: 1px solid #eee;
}

#closeMenu {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

#closeMenu:hover {
    background: #f4f6f9;
    color: #7B68EE;
}

#closeMenu:focus-visible {
    outline: 3px solid rgba(123, 104, 238, 0.35);
}


/* =======================================================
   MOBILE MENU LINKS
   ======================================================= */

.mobile-slide-menu a {
    display: block;

    padding: 12px 15px;

    color: #333;

    text-decoration: none;

    border-bottom: 1px solid #f1f1f1;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.mobile-slide-menu a:hover {
    background: #f4f6f9;
    color: #7B68EE;
}

.mobile-slide-menu a:focus-visible {
    outline: 3px solid rgba(123, 104, 238, 0.35);
    outline-offset: -3px;
}


/* =======================================================
   MENU OVERLAY
   ======================================================= */

#menuOverlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    background: rgba(0, 0, 0, 0.4);

    display: none;

    z-index: 10000;
}

#menuOverlay.active {
    display: block;
}


/* =======================================================
  search
   ======================================================= */

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 28px;

    padding: 0;
  background: none;
    /*background: #7B68EE;*/
    color: #7B68EE;

    border: 3px;
    border-radius: 6px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.search-btn:hover {
   background: #6956d8;
  
}

.search-btn svg {
    width: 18px;
    height: 18px;
}
/* =======================================================
   COOKIE BANNER
   ======================================================= */

.cookie-banner {
    position: fixed;

    bottom: 20px;
    left: 50%;

    width: calc(100% - 30px);
    max-width: 1000px;

    transform: translateX(-50%);

    padding: 15px;

    background: #fff;

    border-radius: 10px;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.20);

    z-index: 10002;
}

.cookie-content {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
    max-width: 800px;

    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    flex: 1;

    min-height: 42px;

    padding: 10px 15px;

    border: none;
    border-radius: 5px;

    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.cookie-actions button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-actions button:focus-visible {
    outline: 3px solid rgba(123, 104, 238, 0.35);
    outline-offset: 2px;
}


/* =======================================================
   ACCEPT / DECLINE BUTTONS
   ======================================================= */

.btn-accept {
    background-color: #4CAF50;
    color: #fff;
}

.btn-decline {
    background-color: #f44336;
    color: #fff;
}


/* =======================================================
   SCROLL TO TOP BUTTON
   ======================================================= */

#scrollTopBtn {
    position: fixed;

    right: 30px;
    bottom: 30px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #7B68EE;
    color: #fff;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease,
        background 0.2s ease;

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);

    z-index: 999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #6956d8;
    transform: translateY(-2px);
}

#scrollTopBtn:focus-visible {
    outline: 3px solid rgba(123, 104, 238, 0.35);
    outline-offset: 3px;
}


/* =======================================================
   TABLET
   ======================================================= */

@media (max-width: 991px) {

    main {
        max-width: 90%;
    }

    .mission-box {
        padding: 25px;
    }

    h1 {
        font-size: 27px;
    }

    .category-strip {
        justify-content: flex-start;
        padding: 8px 12px;
    }

    .sticky-logo {
        margin-right: 10px;
    }

    .sticky-logo img {
        height: 30px;
    }

    .left-video {
        height: 180px;
    }

    .right-videos .small-videos-wrapper {
        max-height: 220px;
    }
}


/* =======================================================
   MOBILE
   ======================================================= */

@media (max-width: 767px) {

    body {
        font-size: 15px;
    }

    main {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    main p {
        font-size: 15px;
        line-height: 1.6;
    }

    .mission-box {
        padding: 20px 15px;
        border-radius: 10px;
    }

    h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 19px;
    }

    h4 {
        font-size: 17px;
    }

    h5,
    h6 {
        font-size: 15px;
    }


    /* Section title */

    .section-title {
        margin-bottom: 20px;
    }

    .section-title span {
        padding: 5px 15px;
        font-size: 14px;
    }


    /* Container */

    .container {
        width: 100%;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }


    /* Videos */

    .left-video {
        height: 200px;
    }

    .right-videos .small-videos-wrapper {
        max-height: none;
        overflow: visible;
    }


    /* Category navigation */

    .category-strip {
        justify-content: flex-start;

        gap: 7px;

        padding: 8px 10px;

        -webkit-overflow-scrolling: touch;
    }

    .category-strip a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .sticky-logo {
        margin-right: 5px;
    }

    .sticky-logo img {
        height: 28px;
    }


    /* Topbar */

    .topbar {
        padding: 7px 10px;
        font-size: 12px;
        text-align: center;
    }


    /* Mobile menu */

    .mobile-slide-menu {
        width: 280px;
        max-width: 85vw;
    }


    /* Cookie banner */

    .cookie-banner {
        bottom: 10px;

        width: calc(100% - 20px);

        padding: 12px;

        border-radius: 8px;
    }

    .cookie-content p {
        font-size: 13px;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-actions button {
        width: 100%;
        min-height: 44px;
    }


    /* Scroll button */

    #scrollTopBtn {
        right: 15px;
        bottom: 15px;

        width: 44px;
        height: 44px;
    }
}


/* =======================================================
   SMALL PHONES
   ======================================================= */

@media (max-width: 400px) {

    h1 {
        font-size: 22px;
    }

    .mission-box {
        padding: 15px 12px;
    }

    .section-title span {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .category-strip a {
        padding: 5px 10px;
        font-size: 12px;
    }

    .left-video {
        height: 180px;
    }
}


/* =======================================================
   REDUCED MOTION
   ======================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


#scrollTopBtn{
position:fixed;
bottom:30px;
right:30px;
width:48px;
height:48px;
border-radius:50%;
border:none;
background:#7B68EE;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;

opacity:0;
visibility:hidden;
transform:translateY(15px);

transition:all .35s ease;
box-shadow:0 6px 14px rgba(0,0,0,0.25);

z-index:999;
}

/* иконата */

#scrollTopBtn svg{
width:22px;
height:22px;
fill:white;
}

/* когато е активен */

#scrollTopBtn.show{
opacity:1;
visibility:visible;
transform:translateY(0);
}

/* hover ефект */

#scrollTopBtn:hover{
background:#5a4cd0;
transform:translateY(-3px) scale(1.05);
box-shadow:0 10px 20px rgba(0,0,0,0.3);
}


#scrollTopBtn svg {
    width: 22px;
    height: 22px;
}

/* Scroll progress bar */

#scrollProgress{
position:fixed;
top:0;
left:0;
height:4px;
width:1%;
background:#7B68EE;
z-index:9999;
transition:width 0.1s linear;
}



.news-grid {
    margin-left: 0;
    margin-right: 0;
}


/* =======================================================
   NEWS CARDS
   ======================================================= */
.news-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    transform: translateZ(0);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==================== Новинарски изображения ==================== */
.news-card img,
.latest-news .news-img,
.news-thumb-lg img,
.news-thumb-sm img {
    width: 100%;
    height: 200px; 
   /* object-fit: contain;*/
    /* фиксирана височина за всички изображения */
   object-fit: cover;   /*  cover изображението се изрязва, за да пасне на размера */
    border-radius: 6px;
}



.accent-section .news-img {
    width: 120px;
    height: 90px;
    /*object-fit: contain;
     object-fit: cover;*/
    border-radius: 5px;
}

/* Ако искаш картите да са еднакви височини */
.latest-news .news-card,
.news-card-sm,
.news-card-lg {
   /* display: flex;*/
    flex-direction: column;
    height: 100%;
}

.news-body {
    padding: 10px;
}

.news-title {
        font-weight: normal; 
         font-size: 1.188rem;
   /* font-size:18px;
    font-weight: 700;*/
            flex: 1 1 1;
    min-height: 1px;
         
}

.news-title a, .news-overlay a {
    color: #000;
    text-decoration: none;
}

.news-title a:hover, .news-overlay a:hover {
    color: #5a4fc1;
    text-decoration: underline;
}

.article-meta {
    font-size: 13px;
    color: #555;
}