@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --lucenta-blue: #032c51;
    --lucenta-light-blue: #23a1dd;
    --lucenta-grey: #666;
    --lucenta-meta: #A1A1A1;
    --lucenta-yellow: #FFD21E;
    --lucenta-orange: #ff4d30;
    --lucenta-bg-blue: #E8F3FF;
    --text-dark: #1F1F1F;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.blog-updated-ui {
    background-color: #fff;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

/* Header Styles */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 999;
    background: #032c51;
    /* Default background is blue */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-main.sticky {
    background: #ffffff !important;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 5px 15px rgb(0 0 0 / 60%);
    height: 80px;
}

.header-inner {
    width: 100%;
    position: relative;
    /* Positioning anchor for mega menus */
}

.logo-box img {
    height: 45px;
    width: auto;
}

/* Default Logos (for blue header) */
.header-main .logo-light {
    display: block;
}

.header-main .logo-dark {
    display: none;
}

/* Sticky State Logos */
.header-main.sticky .logo-light {
    display: none;
}

.header-main.sticky .logo-dark {
    display: block;
}

/* TRANSPARENT OVERRIDE (For Home/Banner) */
.header-main.is-transparent {
    background: transparent;
}

.header-main.is-transparent:not(.sticky) .logo-light {
    display: none;
}

.header-main.is-transparent:not(.sticky) .logo-dark {
    display: block;
}

/* Filter out non-sticky text color for transparent version */
.header-main.is-transparent:not(.sticky) .nav-list>li>a,
.header-main.is-transparent:not(.sticky) .contact-link a {
    color: #333333;
}

/* Navigation */
.nav-list>li {
    margin: 0 10px;
    position: relative;
}

.nav-list>li.mega-menu-trigger {
    position: static;
    /* Allows mega menu to align to the full header width */
}

.nav-list>li>a {
    color: #ffffff;
    /* Default for solid blue header */
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s;
}

/* Sticky Navigation Colors */
.header-main.sticky .nav-list>li>a {
    color: #333333;
}

/* Arrow Toggles */
.has-dropdown .arrow-up {
    display: none !important;
}

.has-dropdown .arrow-down {
    display: inline-block !important;
    margin-left: 5px;
    font-size: 12px;
}

.has-dropdown:hover .arrow-down {
    display: none !important;
}

.has-dropdown:hover .arrow-up {
    display: inline-block !important;
    margin-left: 5px;
    font-size: 12px;
}

.has-dropdown:hover>a,
.list-unstyled li a:hover {
    color: #ff4d30 !important;
    /* Design teal color */
}

/* Ensure arrows are visible on hover */
.has-dropdown:hover>a i {
    color: inherit;
}

/* Dropdowns */
.has-dropdown:hover>.dropdown-list,
.has-dropdown:hover>.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111b31;
    /* Darker blue from analysis */
    width: 215px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 20px !important;
}

.dropdown-list li a {
    color: #ffffff;
    padding: 100px 25px;
    /* Wait, I messed this up in a previous turn maybe? Let's fix. */
    padding: 10px 25px;
    display: block;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-list li a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ff4d30 !important;
}

/* Mega Menu (Updated for Design) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #111b31;
    width: 1000px;
    /* Slightly wider to match 3x2 grid better */
    padding: 40px 20px 40px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.mega-menu-item {
    padding-left: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mega-menu-item h3 a {
    color: #ffffff;
    border-left: 2px solid #ff4d30 !important;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
    padding: 0 0 0 15px !important;
    text-transform: none !important;
    text-decoration: none;
}

.mega-menu-item h3 a:hover,
.mega-links a:hover {
    color: #ff4d30 !important;
    text-decoration: underline !important;
}

.mega-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mega-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    line-height: 1.4;
}

.mega-links a:hover {
    color: #ffffff;
}

.mega-links span {
    color: #fff;
    font-size: 11px;
}

/* Right Side Elements */
.contact-link a {
    color: #ffffff;
    /* Default for solid blue header */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-main.sticky .contact-link a {
    color: #333333;
}

.btn-cta {
    background: #ff4d30;
    /* The orange/coral from image */
    color: #ffffff;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.btn-cta:hover {
    background: #e64026;
    color: #ffffff;
    transform: translateY(-2px);
}


.blog-hero {
    padding: 50px 0 0;
    text-align: center;
    background-image: radial-gradient(circle farthest-corner at 125% 100%, #fff 19%, #fff0 41%), linear-gradient(38deg, #fff0 78%, #ffffffb0), linear-gradient(45deg, #fff 10%, #fff0 22%), linear-gradient(0deg, #fff, #fff0 91%), radial-gradient(circle farthest-corner at 0 -50%, #fff0 15%, #1ec7ff66 38%, #fff0 65%), repeating-linear-gradient(214deg, #fff0, #f100dd4d 25%, #fff0 71%), repeating-linear-gradient(212deg, #fff0 51%, #6439e855 64%, #fff0 80%);
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.blog-hero p {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: #4A4A4A;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.blog-hero .container {
    height: 100dvh !important;
    padding: 120px 100px 0 100px !important;
}

/* Subscription Form in Hero */
.hero-subscribe {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.hero-subscribe input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 1.1rem;
    outline: none;
}

.hero-subscribe button {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px 20px;
}

.hero-recaptcha {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--lucenta-grey);
}


/* Featured Section */
.featured-header {
    margin-bottom: 60px;
    text-align: center;
}

.featured-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-dark);
}

.featured-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 100px;
}

.featured-card {
    flex: 1;
    border: 4px solid var(--lucenta-orange);
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-card .featured-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-card .img-wrapper {
    background: var(--lucenta-bg-blue);
    padding: 20px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
}


.featured-card img {
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
}


/* Latest Articles Filter */
.category-filters {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid #EAEAEA;
    background: #fff;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--lucenta-orange);
    color: #fff;
    border-color: var(--lucenta-orange);
}

/* Main Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card .img-wrapper {
    background: var(--lucenta-bg-blue);
    border-radius: 0;
    margin-bottom: 25px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Removed padding to allow object-fit to work better */
    overflow: hidden;
}

.blog-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the area without distorting */
    transition: transform 0.3s ease;
}

.blog-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.blog-meta {
    font-size: 1rem;
    color: var(--lucenta-meta);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    font-family: var(--font-body);
}

.blog-title {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}


.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--lucenta-orange);
}

/* --- Blog Detail Page (Aureate Labs Style) --- */

.blog-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 40px;
    margin-top: 40px;
}

/* Back Button */
.back-to-blogs {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    z-index: 100;
    position: relative;
}

.back-to-blogs:hover {
    color: var(--lucenta-blue);
}

.back-to-blogs i {
    margin-right: 8px;
}

/* Sidebar Sticky */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Category Tag */
.category-tag {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 13px;
    color: #444;
    font-weight: 500;
    background: #fafafa;
}

/* Main Content */
.detail-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    font-family: var(--font-heading);
}

.detail-featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post-text-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.post-text-content h2,
.post-text-content h3 {
    scroll-margin-top: 110px;
    font-weight: 700;
}

.post-text-content h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 25px;
}

.post-text-content h3 {
    font-size: 1.6rem;
    margin-top: 35px;
    margin-bottom: 20px;
}

.post-text-content p {
    margin-bottom: 25px;
}

/* TOC Sidebar (Left) */
.toc-container {
    padding-right: 15px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.toc-container::-webkit-scrollbar {
    width: 4px;
}

.toc-container::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.toc-container::-webkit-scrollbar-thumb:hover {
    background: #ddd;
}

.toc-list {
    list-style: none;
    padding: 0;
    border-left: 2px solid #eee;
}

.toc-list li {
    margin-bottom: 5px;
}

.toc-list a {
    display: block;
    padding: 8px 0 8px 20px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    margin-left: -2px;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--lucenta-orange) !important;
    border-left: 4px solid var(--lucenta-orange);
    font-weight: 600;
}

/* TOC Hierachy styling */
.toc-list li.h2 a {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.toc-list li.h3 a {
    padding-left: 35px;
    font-size: 14px;
    color: #777;
}

.toc-list li.h3 a:hover,
.toc-list li.h3 a.active {
    color: var(--lucenta-orange);
}

/* Quick Links Sidebar (Right) */
.sidebar-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #efefef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.quick-link-item:hover {
    border-color: #ddd;
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    color: var(--lucenta-orange);
    border: 1px solid var(--lucenta-orange) !important;
}

.quick-link-item i {
    font-size: 12px;
    color: #bbb;
    transition: transform 0.3s;
}

.quick-link-item:hover i {
    transform: translateX(5px);
    color: var(--lucenta-orange);
}

@media (max-width: 1200px) {
    .blog-detail-grid {
        grid-template-columns: 1fr 300px;
    }

    .detail-sidebar-left {
        display: none;
    }
}

@media (max-width: 991px) {
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar-right {
        display: none;
    }

    .detail-title {
        font-size: 2.2rem;
    }
}

/* Fade-up animation for blog cards */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card[data-aos="fade-up"] {
    animation: fadeUp 0.6s ease forwards;
}

/* Sidebar Banner */
.sidebar-banner {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-banner:hover {
    transform: translateY(-5px);
}

.sidebar-banner img {
    transition: box-shadow 0.3s ease;
}

.sidebar-banner:hover img {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Footer New (Production Style) */
.footer-new {
    background-color: #032c51;
    color: #ffffff;
    padding: 80px 0 40px;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    flex: 1.5;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-social-links a {
    color: #fff;
    font-size: 18px;
    margin-right: 25px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social-links a:hover {
    color: var(--lucenta-orange);
    transform: translateY(-3px);
}

.footer-contact-item a {
    color: #ffffff;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--lucenta-orange);
}

.address-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-transform: none;
}

.address-text {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-phone-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 45px;
}

.footer-phone-list a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-phone-list a::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: url(https://www.lucentasolutions.com/images/sprite.webp) no-repeat -14px -94px;
}

.footer-phone-list li:nth-child(2) a::before {
    background-position: -14px -142px;
}

.footer-phone-list li:nth-child(3) a::before {
    background: url("https://www.lucentasolutions.com/images/australia-flag.png") no-repeat center center;
    background-size: 32px 32px;
}

.footer-phone-list a:hover {
    color: var(--lucenta-orange);
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.partner-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    filter: brightness(0) invert(1) opacity(0.6);
    transition: all 0.4s ease;
}

.partner-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

.copyright-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    margin-top: 35px;
}

.mr-2 {
    margin-right: 8px;
}

/* Sticky Top Button */
.goTop {
    width: 45px;
    height: 45px;
    line-height: 45px;
    background: var(--lucenta-orange);
    color: #fff;
    text-align: center;
    border-radius: 50%;
    position: fixed;
    bottom: 25px;
    right: 100px;
    z-index: 99;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.goTop:hover {
    transform: translateY(-5px);
    background: #e64026;
    color: #fff;
}

@media (max-width: 991px) {
    .footer-top-row {
        gap: 50px 30px;
    }

    .footer-col {
        flex: 0 0 45%;
    }

    .brand-col {
        flex: 0 0 100%;
    }
}

@media (max-width: 575px) {
    .footer-col {
        flex: 0 0 100%;
    }

    .partner-logos-row {
        gap: 30px;
    }
}

/* Floating WhatsApp Button */
.desktop-whatsapp {
    position: fixed;
    bottom: 90px;
    z-index: 1000;
}

.whatsappIcon {
    background-color: #4dc247;
    border-radius: 50%;
    height: 48px;
    width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.whatsappIcon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsappIcon svg {
    fill: white !important;
    height: 30px;
    width: 30px;
}

@media (max-width: 767px) {
    .desktop-whatsapp {
        display: none;
    }
}