/* =========================================================
   Odoo vs NetSuite Blog
   Same visual language as the reference O2B blog
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.custom-hero-section {
    position: relative;
    width: 100%;
    min-height: 360px;
    background-image: url('./1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    padding: 80px 0;
}

.custom-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #25d0ffd4, #7f50ffd4);
    z-index: 1;
}

.custom-hero-section .container {
    position: relative;
    z-index: 2;
}

.custom-hero-title {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 2.8rem;
    margin-bottom: 0;
}

.custom-social-sidebar {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.custom-social-icon {
    color: #fff;
    font-size: 1.2rem;
    margin: 10px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.custom-social-icon:hover,
.custom-social-icon:focus {
    color: #d1ecf1;
    transform: scale(1.1);
    text-decoration: none;
}

.custom-meta-info {
    font-size: 0.9rem;
    color: #555;
}

.custom-meta-info span {
    display: inline-block;
}

.custom-section-heading {
    color: #18295e;
    font-weight: 800;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.3;
    scroll-margin-top: 100px !important;
}

.custom-subsection-heading {
    color: #18295e;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.9rem;
    font-size: 1.25rem;
    line-height: 1.35;
    scroll-margin-top: 100px;
}

.custom-blog-content {
    width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.custom-blog-content p {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
    margin-bottom: 1rem;
}

.custom-blog-content ul,
.custom-blog-content ol {
    margin-top: 0.6rem;
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.custom-blog-content ul li,
.custom-blog-content ol li {
    line-height: 1.7;
    color: #444;
    font-size: 15px;
    margin-bottom: 0.25rem;
}

.custom-blog-content .custom-nested-list {
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
    list-style-type: circle;
}

.custom-blog-content a {
    overflow-wrap: anywhere;
}

.custom-ordered-list {
    padding-left: 2.1rem !important;
}

.custom-inline-image {
    width: 100%;
    margin-top: 1.5rem;
}

.custom-inline-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.custom-sticky-sidebar {
    position: sticky;
    top: 80px;
}

.custom-toc-card {
    background: linear-gradient(to top, #e8e8ff, #dffaff);
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.custom-toc-header {
    background-color: #dffaff;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #113d33;
    cursor: pointer;
    user-select: none;
}

.custom-toc-header:focus {
    outline: 2px solid rgba(0, 123, 255, 0.35);
    outline-offset: -2px;
}

.custom-toc-body {
    padding: 0 20px 20px 20px;
    max-height: 50vh;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.custom-toc-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.custom-toc-body ul {
    padding-left: 0;
}

.custom-toc-body ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.custom-toc-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #113d33;
    border-radius: 50%;
}

.custom-toc-body ul li a {
    color: #113d33;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-toc-body ul li a:hover,
.custom-toc-body ul li a:focus {
    color: #007bff;
    text-decoration: none;
}

.custom-latest-blogs-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eaeaea;
}

.custom-blog-item h6 {
    line-height: 1.45;
}

.custom-blog-item h6 a {
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-blog-item h6 a:hover,
.custom-blog-item h6 a:focus {
    color: #009dff !important;
}

.custom-table-wrapper {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.custom-table-wrapper .table {
    min-width: 620px;
}

.custom-table-header {
    background-color: #113d33;
}

.custom-table-header th {
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    white-space: normal;
}

.table tbody td {
    vertical-align: middle;
    border-top: 1px solid #edf2f7;
    color: #323437;
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, #dfdfff, #e7f8ff);
}

.custom-featured-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Desktop/tablet */
@media (max-width: 1199px) {
    .custom-hero-title {
        font-size: 2.5rem;
    }

    .custom-social-sidebar {
        right: 22px;
    }
}

/* Bootstrap lg breakpoint */
@media (max-width: 991px) {
    .custom-hero-title {
        font-size: 2.2rem;
    }

    .custom-sticky-sidebar {
        position: static;
        margin-top: 40px;
    }

    .custom-toc-body {
        max-height: 45vh;
    }
}

/* Bootstrap md breakpoint */
@media (max-width: 767px) {
    .custom-hero-section {
        min-height: 70vh;
        background-attachment: scroll;
        padding: 65px 0;
    }

    .custom-hero-title {
        font-size: 1.6rem;
        text-align: center;
        padding: 0 30px;
    }

    .custom-social-sidebar {
        right: 12px;
    }

    .custom-social-icon {
        font-size: 1rem;
        margin: 8px 0;
    }

    .custom-section-heading {
        font-size: 1.5rem;
    }

    .custom-subsection-heading {
        font-size: 1.15rem;
    }

    .custom-blog-content p,
    .custom-blog-content ul li,
    .custom-blog-content ol li {
        font-size: 15px;
    }

    .custom-meta-info span {
        margin-bottom: 5px;
    }

    .custom-table-header th {
        font-size: 0.85rem;
        padding: 10px !important;
    }

    .table tbody td {
        font-size: 0.85rem;
        padding: 10px !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .custom-hero-section {
        min-height: 62vh;
        padding: 55px 0;
    }

    .custom-hero-title {
        font-size: 1.3rem;
        padding: 0 24px;
    }

    .custom-social-sidebar {
        right: 7px;
    }

    .custom-social-icon {
        font-size: 0.9rem;
        margin: 7px 0;
    }

    .custom-section-heading {
        font-size: 1.35rem;
        margin-top: 1.5rem;
    }

    .custom-subsection-heading {
        font-size: 1.08rem;
    }

    .custom-blog-content ul,
    .custom-blog-content ol {
        padding-left: 1.5rem;
    }

    .custom-table-header th {
        font-size: 0.8rem;
        padding: 8px !important;
    }

    .table tbody td {
        font-size: 0.8rem;
        padding: 8px !important;
    }

    .custom-latest-blogs-card {
        padding: 16px;
    }
}

/* Prevent fixed social controls from creating horizontal overflow */
@media (max-width: 380px) {
    .custom-social-sidebar {
        right: 4px;
    }

    .custom-social-icon {
        font-size: 0.82rem;
        margin: 6px 0;
    }

    .custom-hero-title {
        padding-right: 34px;
        padding-left: 20px;
    }
}