/* =========================
   HILINK ENTERPRISE THEME - BLOG
========================= */

:root {
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --blue: #1D8CFF;
    --green: #22C55E;
    --navy: #0B1F3A;
    --slate: #64748B;
    --ice-blue: #EAF5FF;
    --border: #E2E8F0;
    --text-muted: #475569;
    --text-light: #D5DCE8;
}

/* =========================
   RESET & GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
    padding-top: 90px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--slate);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.15);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--green);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.contact-btn {
    background: var(--green);
    color: var(--navy) !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-shadow: none !important;
}

.contact-btn:hover {
    background: var(--white);
    color: var(--navy) !important;
    transform: translateY(-2px);
}

/* Services Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    width: 230px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
}

.dropdown-menu a {
    display: block;
    color: var(--navy);
    padding: 12px 15px;
    text-shadow: none;
}

.dropdown-menu a:hover {
    background: var(--ice-blue);
    color: var(--blue);
    padding-left: 18px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* =========================
   BLOG HERO
========================= */

.blog-hero {
    background: var(--white);
    color: var(--navy);
    padding: 90px 20px 60px;
    border-bottom: 1px solid var(--border);
}

.blog-hero-content {
    max-width: 1210px;
    margin: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.hero-label,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-label::before,
.section-label::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--green);
}

.blog-hero h1 {
    max-width: 1050px;
    font-size: 52px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--navy);
}

.blog-hero p {
    max-width: 720px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

/* =========================
   BLOG GRID & CARDS
========================= */

.blog-section {
    background: var(--bg-light);
    padding: 90px 30px;
    border-bottom: 1px solid var(--border);
}

.blog-container {
    max-width: 1210px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(11, 31, 58, 0.04);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(11, 31, 58, 0.08);
    border-color: var(--green);
}

.blog-image-wrapper {
    width: 100%;
    height: 210px;
    background-color: var(--ice-blue);
    border-bottom: 1px solid var(--border);
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.blog-category {
    background-color: var(--ice-blue);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.blog-title {
    font-size: 21px;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
    flex-grow: 1;
}

.read-more-btn {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more-btn:hover {
    color: var(--green);
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--slate);
    color: var(--white);
    padding-top: 55px;
}

.footer-container {
    max-width: 1210px;
    margin: auto;
    padding: 0 30px 45px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 35px;
}

.footer-column h3 {
    color: var(--green);
    margin-bottom: 15px;
    font-size: 17px;
}

.footer-column p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 9px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--green);
    padding-left: 4px;
}

/* Newsletter */
.newsletter input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-top: 8px;
    outline: none;
    font-family: inherit;
}

.newsletter input:focus {
    border-color: var(--green);
}

.newsletter button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: var(--green);
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter button:hover {
    background: var(--white);
}

/* Social Media */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: 0.3s;
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.social-links a:hover {
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-3px);
}

.social-links a:hover .linkedin-icon {
    fill: var(--navy);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 18px 20px;
}

.footer-bottom p {
    color: #CBD5E1;
    margin: 0;
    font-size: 14px;
}

/* =========================
   RESPONSIVE & MOBILE MENU
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
}

@media (max-width: 1100px) {
    .navbar {
        padding: 15px 30px;
    }

    nav {
        gap: 18px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .blog-hero h1 {
        font-size: 42px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    body {
        padding-top: 80px;
    }

    .navbar {
        height: 80px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--slate);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: 0.3s;
    }

    nav.open {
        max-height: 500px;
        padding: 10px 0 20px;
    }

    nav a {
        width: 100%;
        padding: 14px 30px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .blog-hero {
        padding: 60px 20px;
    }

    .blog-hero h1 {
        font-size: 34px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .blog-section {
        padding: 60px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-column a:hover {
        padding-left: 0;
    }

    .newsletter {
        max-width: 350px;
        margin: auto;
        width: 100%;
    }
}

/* ========================================== */
/* AI CHATBOT STYLES                         */
/* ========================================== */

.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    background: var(--blue);
}

.chat-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 31, 58, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--navy);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
}

.chat-header h4 {
    font-size: 15px;
    margin: 0;
}

.chat-header small {
    color: var(--slate);
    font-size: 12px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F8FAFC;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: var(--ice-blue);
    color: var(--navy);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    background: var(--green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--green);
}

.chat-send-btn {
    background: var(--navy);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.chat-send-btn:hover {
    background: var(--blue);
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* =========================
   COOKIE CONSENT
========================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--navy);
    color: white;
    padding: 20px 30px;
    z-index: 2500;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    background: var(--green);
    color: var(--navy);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-accept:hover {
    background: var(--blue);
    color: white;
}

.btn-cookie-decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-decline:hover {
    border-color: var(--green);
    color: var(--green);
}

@media (max-width: 700px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
    }

    .btn-cookie-accept,
    .btn-cookie-decline {
        flex: 1;
    }
}