/* ===============================
   Base
   =============================== */

   @font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    background: #fff;
    margin: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    --main-color: #280396;
    --main-color-hover: #210470;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--main-color) !important;
}

/* ===============================
   Global layout wrapper
   =============================== */

    .site-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

/* ===============================
   Header
   =============================== */

    .header-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transform: translateY(0);
        transition: transform 0.35s ease;
    }

    .main-header {
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #eee;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    .header-wrap.hidden {
        transform: translateY(-140px);
    }

    /* --- MAIN HEADER SCROLL BEHAVIOR --- */


    .main-header .site-wrapper {
        max-width: 1600px; /* wider than main content */
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100px;
    }

/* ===============================
   Top navbar
   =============================== */

    .top-navbar {
        background: var(--main-color);
        height: 40px;
        overflow: hidden;               /* ключово */
        transition: height 0.3s ease;   /* плавно свиване */
    }

    .header-wrap.topbar-hidden .top-navbar {
        height: 0;
    }

    .top-navbar .site-wrapper {
        max-width: 1600px;
        height: 100%;
    }

    .top-navbar-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
    }

    .top-navbar-right {
        display: flex;
        align-items: center;
        gap: 20px;
        line-height: 1;
    }

    .top-navbar-label {
        color: #ffffff;
        font-size: 14px; 
        font-weight: 500;
        opacity: 0.9;
    }

    .top-navbar-right a {
        color: #ffffff;
        font-size: 18px;
        opacity: 0.85;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .top-navbar-right a:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

/* ===============================
   Navigation
   =============================== */

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 35px;
    }

    .main-nav a {
        position: relative;
        text-decoration: none;
        color: #545454;
        font-weight: 500;
        padding-bottom: 6px;
        transition: color 0.25s ease;
    }

    .main-nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: var(--main-color);
        transition: width 0.25s ease;
    }

    .main-nav a:hover {
        color: var(--main-color);
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    .main-nav a.active {
        color: var(--main-color);
        font-weight: 600;
    }

    .main-nav a.active::after {
        width: 100%;
    }
    .logo a {
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 78px;
        width: auto;
        max-width: 100%;
        display: block;
    }

    /* Mobile menu toggle (hamburger) */
    .mobile-menu-toggle {
        display: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }

/* ===============================
   Hero
   =============================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #f3f6fb;
    height: 720px;
    padding: 0;
    padding-top: 140px;
    margin-top: 140px;
}


.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0; /* start hidden */
    transition: opacity 2s ease; /* fade duration */
}

.hero-video.is-visible {
    opacity: 0.38; /* final visibility */
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
}

.hero-text {
    max-width: 620px;
    padding-bottom: 180px;
    z-index: 3;
}

/* Name label */
.hero-text .hero-name {
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: var(--main-color);
    margin-bottom: 20px;
}

/* Main title */
.hero-text h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
    text-transform: uppercase;
    color: #2f2f2f !important;
    margin-bottom: 32px;
}

/* Subtitle */
.hero-text p {
    font-size: 20px;
    line-height: 1.6;
    color: #7a7a7a;
    max-width: 420px;
    margin-bottom: 44px;
}

.hero-visual {
    position: relative;
    width: 600px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-person {
    position: relative;
    top: 50px;
    right: 20px;
    z-index: 2;
    max-width: 600px;
    height: auto;
    margin: 0;
    display: block;
}

/* CTA button */
.btn-primary {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    padding: 18px 42px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(65,193,39,0.25);
    text-decoration: none;
    transition: background 0.35s ease,
                box-shadow 0.35s ease,
                transform 0.35s ease;
}

.btn-primary:hover {
    background: var(--main-color-hover);
}

@keyframes slowRotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}


/* ===============================
   GLOBAL BUTTONS
   =============================== */

   .btn-primary,
   .btn-outline {
       height: 64px;
       min-width: 260px;
       padding: 0 44px;
   
       display: inline-flex;
       align-items: center;
       justify-content: center;
   
       font-family: inherit;
       font-size: 18px;
       font-weight: 600;
       line-height: 1;
   
       border-radius: 12px;
       text-decoration: none;
       cursor: pointer;
   
       box-sizing: border-box;
   
       transition:
           background-color 0.3s ease,
           color 0.3s ease,
           border-color 0.3s ease,
           box-shadow 0.3s ease,
           transform 0.3s ease;
   }
   
   /* Primary (green) */
   .btn-primary {
       background: var(--main-color);
       border: 2px solid var(--main-color);
       color: #ffffff;
       box-shadow: 0 14px 28px rgba(39, 121, 193, 0.35);
   }
   
   .btn-primary:hover {
       background: var(--main-color-hover);
       border-color: var(--main-color-hover);
       box-shadow: 0 5px 50px rgba(48, 33, 211, 0.489);
   }
   
   /* Outline */
   .btn-outline {
       background: transparent;
       border: 2px solid var(--main-color);
       color: var(--main-color);
   }
   
   .btn-outline:hover {
       background: var(--main-color);
       border-color: var(--main-color);
       color: #ffffff;
   }


/* ===============================
   Subscribe section
   =============================== */

.subscribe-section {
    background: var(--main-color);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.subscribe-section .site-wrapper {
    max-width: 900px;
    text-align: center;
}

.subscribe-section h2 {
    color: #ffffff !important;
    font-size: 42px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.subscribe-section h2 strong {
    font-weight: 800;
}

.subscribe-section p {
    color: #eaffea;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.subscribe-form input {
    height: 56px;
    padding: 0 18px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    outline: none;
}

.subscribe-form input::placeholder {
    color: #b5b5b5;
}

.subscribe-form button {
    margin: 20px auto 0;
    background: rgba(255,255,255,0);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,1);
    cursor: pointer;
    transition: background 0.25s ease;
}

.subscribe-form button:hover {
    background: rgba(255,255,255,0.28);
}

    /* Subscribe background bubbles */

    .subscribe-section {
        position: relative;
        overflow: hidden;
    }

    .subscribe-bg {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .subscribe-section .site-wrapper {
        position: relative;
        z-index: 2;
    }

    /* Base bubble */
    .bubble {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        filter: blur(2px);
        animation: floatBubble 18s ease-in-out infinite;
    }

    /* Bubble 1 */
    .bubble-1 {
        width: 260px;
        height: 260px;
        top: 10%;
        left: -80px;
        animation-duration: 24s;
    }

    /* Bubble 2 */
    .bubble-2 {
        width: 180px;
        height: 180px;
        bottom: -60px;
        right: 10%;
        animation-duration: 20s;
        animation-delay: -6s;
    }

    /* Floating animation */
    @keyframes floatBubble {
        0% {
            transform: translate(0, 0);
        }
        20% {
            transform: translate(40px, -30px);
        }
        40% {
            transform: translate(-30px, -70px);
        }
        60% {
            transform: translate(60px, -40px);
        }
        80% {
            transform: translate(-40px, -20px);
        }
        100% {
            transform: translate(0, 0);
        }
    }
    
/* Настройки за контейнерите на страниците */

.section-spacing {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* optional – за по-големи секции */
.section-spacing-lg {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

/* BUTTON */

.btn-read {
    display: inline-block;
    background: #41c127;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease;
}

.btn-read:hover {
    background: #36a81f;
}

/* ===============================
   Mobile-only elements (base) - трябва да е тук
   =============================== */

    .mobile-menu-toggle {
        display: none;
    }

    .mobile-nav-socials {
        display: none;
    }


    /* ===============================
   Най-четени статии секция
   =============================== */


    .home-popular {
        background: #ffffff;
    }
    
    .home-popular .section-title {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 40px;
        text-align: center;
    }

    .carousel-wrapper {
        position: relative;
    }
    
    .carousel-track {
        display: flex;
        gap: 28px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 10px 0 20px;
    }
    
    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-card {
        min-width: 300px;
        max-width: 300px;
        background: #f7f9fb;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 4px 10px rgba(0,0,0,0.18);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .carousel-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .card-image {
        width: 100%;
        height: 180px;
        overflow: hidden;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .card-body {
        padding: 22px;
    }
    
    .blog-badge {
        display: inline-block;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        color: #41c127;
        margin-bottom: 12px;
    }
    
    .carousel-card h3 {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        color: #2f2f2f !important;
        margin: 0;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #ffffff;
        border: none;
        font-size: 26px;
        color: #41c127;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        z-index: 10;
        transition: background 0.25s ease, transform 0.25s ease;
    }
    
    .carousel-btn:hover {
        background: #41c127;
        color: #ffffff;
        transform: translateY(-50%) scale(1.05);
    }
    
    .carousel-btn.left {
        left: -18px;
    }
    
    .carousel-btn.right {
        right: -18px;
    }

    .home-popular .site-wrapper {
        overflow: visible;
    }

/* ===============================
   Footer
   =============================== */

   .site-footer {
    background: var(--main-color);
    color: #fff;
    padding: 26px 0;
    font-size: 16px;
    }

    .site-footer .site-wrapper {
        text-align: center;
    }

    .site-footer p {
        margin: 0;
        line-height: 1.6;
    }

    .site-footer .footer-separator {
        margin: 0 8px;
        opacity: 0.5;
    }

    /* Бутон за връщане на страницата в началото */
    #scrollTopBtn {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        border: none;
        background: var(--main-color);
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    #scrollTopBtn.show {
        opacity: 1;
        pointer-events: auto;
    }

    #scrollTopBtn:hover {
        transform: translateY(-4px);
    }

    
    
/* ===============================
   HERO MOBILE FIX
   =============================== */

@media (max-width: 768px) {

    .hero {
        margin-top: 80px !important;
        padding-top: 40px !important;
        height: auto;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        order: 1;
        padding-bottom: 40px;
        max-width: 100%;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .hero-person {
        right: 0;
        max-width: 320px;
    }
}