/* ===== Announcement Bar Styles ===== */
.announcement-bar {
    background: linear-gradient(90deg, #762de9 0%, #4841E1 100%);
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.announcement-bar .announcement-content {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.announcement-bar .btn-white {
    background: white;
    color: #4841E1;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 18px;
    transition: all 0.3s ease;
}

.announcement-bar .btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .announcement-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .announcement-bar .announcement-content {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .announcement-bar .badge {
        margin-bottom: 5px;
        margin-right: 0 !important;
    }

    .announcement-bar .btn-white {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Blog Content Typography */
.blog-content-info {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    /* Matches .color-666 from theme */
    margin-bottom: 50px;
}

.blog-content-info h1,
.blog-content-info h2,
.blog-content-info h3,
.blog-content-info h4,
.blog-content-info h5,
.blog-content-info h6 {
    color: #000;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.blog-content-info h1 {
    font-size: 2.5rem;
}

.blog-content-info h2 {
    font-size: 2rem;
}

.blog-content-info h3 {
    font-size: 1.75rem;
}

.blog-content-info h4 {
    font-size: 1.5rem;
}

.blog-content-info p {
    margin-bottom: 20px;
}

.blog-content-info ul,
.blog-content-info ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content-info li {
    margin-bottom: 10px;
    list-style-position: inside;
}

.blog-content-info img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-content-info a {
    color: var(--color-blue4);
    /* Theme blue/primary */
    text-decoration: underline;
}

.blog-content-info strong,
.blog-content-info b {
    color: #000;
    font-weight: 700;
}

.blog-content-info blockquote {
    background: #f9f9f9;
    border-left: 5px solid var(--color-blue4);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #333;
    border-radius: 5px;
}

/* Missing Social Share Icons Colors */
.blog-page.style-5 .blog-share .share-icons a i.fa-whatsapp {
    background-color: #25D366;
}

.blog-page.style-5 .blog-share .share-icons a i.fa-linkedin-in {
    background-color: #0077b5;
}

.blog-page.style-5 .blog-share .share-icons a i.fa-pinterest-p,
.blog-page.style-5 .blog-share .share-icons a i.fa-pinterest {
    background-color: #E60023;
}

/* Comments Section Redesign */
.bg-gray5 {
    background-color: #f5f7fa !important;
}

.radius-10 {
    border-radius: 10px !important;
}

.radius-5 {
    border-radius: 5px !important;
}

.icon-60 {
    width: 60px;
    height: 60px;
    line-height: 60px;
}

.color-999 {
    color: #999;
}

.color-000 {
    color: #000;
}

.ls-1 {
    letter-spacing: 1px;
}

.form-control:focus {
    box-shadow: none;
    background-color: #fff !important;
    border: 1px solid var(--color-blue4) !important;
}

.comment-form-content .form-wrapper {
    transition: all 0.3s ease;
}

.comment-form-content .form-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* WhatsApp Widget Styles - Premium Purple Design */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    z-index: 999998;
    font-family: 'Inter', sans-serif;
}

.whatsapp-widget.right-pos {
    right: 30px;
}

.whatsapp-widget.left-pos {
    left: 30px;
}

/* Purple Pulse Animation */
@keyframes pulse-purple-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 45, 233, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(118, 45, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(118, 45, 233, 0);
    }
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #762de9 0%, #4841E1 100%);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(72, 65, 225, 0.4);
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-purple-soft 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(72, 65, 225, 0.5);
}

.whatsapp-btn i {
    transition: transform 0.4s ease;
}

.whatsapp-btn:hover i {
    transform: rotate(15deg);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Popup Container */
.whatsapp-popup {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-widget.left-pos .whatsapp-popup {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header Design */
.whatsapp-header {
    background: linear-gradient(135deg, #762de9 0%, #4841E1 100%);
    color: white;
    padding: 35px 30px 30px;
    position: relative;
    text-align: center;
}

/* Decorative Shapes in Header */
.whatsapp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.whatsapp-header .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    backdrop-filter: blur(5px);
}

.whatsapp-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.whatsapp-header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.whatsapp-header .logo-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.whatsapp-header h5 {
    color: white;
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.whatsapp-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* Agents List */
.whatsapp-agents {
    padding: 25px;
    background: #fff;
}

.agent-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
    text-align: center;
}

.agent-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.agent-item:hover {
    background: #ffffff;
    border-color: #762de9;
    box-shadow: 0 8px 25px rgba(118, 45, 233, 0.15);
    transform: translateY(-3px);
}

.agent-avatar {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #eef4f8 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #4841E1;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
    border: 1px solid #edf2f7;
}

.agent-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #25D366;
    /* Keep status green */
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agent-info {
    flex-grow: 1;
}

.agent-info h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #333;
}

.agent-info h6:hover {
    color: #4841E1;
}

.agent-info span {
    font-size: 13px;
    color: #666;
    display: block;
}

.agent-icon {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    font-size: 18px;
    transition: all 0.3s ease;
}

.agent-item:hover .agent-icon {
    background: #25D366;
    color: white;
    transform: scale(1.1);
}

/* Call to Action Area */
.widget-footer {
    padding: 15px 20px 20px;
    background: #fff;
    text-align: center;
    border-top: none;
}

.widget-footer span {
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== WhatsApp Widget Mobile Responsiveness ===== */
@media (max-width: 576px) {
    .whatsapp-widget {
        bottom: 20px;
    }

    .whatsapp-widget.right-pos {
        right: 20px;
    }

    .whatsapp-widget.left-pos {
        left: 20px;
    }

    .whatsapp-popup {
        width: calc(100vw - 40px);
        bottom: 80px;
        right: -10px !important;
        /* Counteract parent padding/position if needed, or relative to widget */
    }

    .whatsapp-widget.left-pos .whatsapp-popup {
        left: -10px !important;
    }

    /* Adjust button size slightly for mobile */
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ===== Dropdown Menu Hover Fix ===== */
/* Allow parent links to be clickable while dropdowns open on hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s;
    }

    .navbar .dropdown .dropdown-menu {
        margin-top: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Blog Sidebar Sticky ===== */
@media (min-width: 992px) {
    .blog-sidebar-sticky {
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Custom scrollbar for sidebar */
    .blog-sidebar-sticky::-webkit-scrollbar {
        width: 6px;
    }

    .blog-sidebar-sticky::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .blog-sidebar-sticky::-webkit-scrollbar-thumb {
        background: #2596ff;
        border-radius: 10px;
    }

    .blog-sidebar-sticky::-webkit-scrollbar-thumb:hover {
        background: #762de9;
    }
}



/* ===== Fix Sticky Sidebar ===== */
.blog-page.style-5,
.blog-page.style-5 .all-news {
    overflow: visible !important;
}

.blog-page.style-5 .side-blog {
    align-self: flex-start;
    height: auto !important;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999990;
    /* Below WhatsApp widget */
    background: white;
    padding: 12px 20px 12px 12px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeUpCookie 0.5s ease-out forwards;
}

.cookie-consent-popup.hide {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    /* Prevent text wrapping if possible */
}

.cookie-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cookie-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.cookie-link {
    font-size: 14px;
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #5842bc;
    /* Brand Purple */
}

.cookie-close {
    background: #e9ecef;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
}

.cookie-close:hover {
    background: #dee2e6;
    color: #333;
}

@keyframes fadeUpCookie {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 576px) {
    .cookie-consent-popup {
        bottom: 90px;
        /* WhatsApp widget'tan yukarıda */
        width: 85%;
        padding: 8px 12px 8px 8px;
        border-radius: 12px;
    }

    .cookie-content {
        gap: 8px;
        white-space: normal;
        /* Metinlerin sarmalanmasına izin ver */
    }

    .cookie-img {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        /* Resmin küçülmesini engelle */
    }

    .cookie-text {
        font-size: 12px;
        line-height: 1.3;
    }

    .cookie-link {
        font-size: 12px;
        white-space: nowrap;
    }

    .cookie-close {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-left: 8px;
        flex-shrink: 0;
    }
}

/* Page Content Fixes */
.page-content .content {
    word-wrap: break-word;
    /* Legacy support */
    overflow-wrap: break-word;
    /* Modern standard */
    word-break: break-word;
    /* Aggressive breaking for long strings */
    width: 100%;
    max-width: 100%;
    /* Ensure it never exceeds parent */
}

/* Force all children to fit within the container */
.page-content .content * {
    max-width: 100% !important;
    box-sizing: border-box;
}

.page-content .content img {
    height: auto;
}

.page-content .content table {
    display: block;
    overflow-x: auto;
}

/* ===== Header Blend Video Responsive ===== */
header.style-4 {
    position: relative;
}

header.style-4 .content {
    position: relative;
    z-index: 0;
}

.img-impula-video {
    position: relative;
    z-index: -1;
}

.features.style-4 {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.hero-buttons-wrapper {
    position: absolute;
    top: 420px;
    left: 0;
    right: 0;
    z-index: 100;
}

.play-btn {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 991px) {
    header.style-4 .wave {
        position: relative;
        bottom: 0;
    }
    
    .hero-buttons-wrapper {
        position: relative;
        top: 0;
        z-index: 1;
    }
    
    .features.style-4 {
        margin-top: 0;
    }
    
    .clients.style-4 {
        padding-top: 0;
        padding-bottom: 0;
        margin-top: -65px;
        margin-bottom: -65px;
    }
    
    .header-blend-video {
        display: none !important;
    }
}