@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

/* Global Resets & Typography */
body {
    font-family: 'Kanit', sans-serif !important;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%) !important;
    color: #334155 !important;
    line-height: 1.6;
}

/* Wrapper Overrides */
.help-custom-wrap {
    background: transparent !important;
    box-shadow: none !important;
}

/* Page Heading */
.help-custom-product-heading {
    text-align: center;
    margin: 40px 0 60px 0;
    background-color: transparent !important;
    padding: 0 !important;
}

.premium-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.premium-heading .heading-main {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1.2;
}

.premium-heading .heading-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.premium-heading .heading-desc {
    font-size: 1.1rem;
    font-weight: 400;
    color: #64748b;
    margin-top: -5px;
}

/* Accordion Wrapper */
#accordion-style-1 {
    background: transparent !important;
    padding: 0 !important;
    max-width: 900px;
    margin: 0 auto;
}

#accordion-style-1 .accordion {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

/* Individual Card (Accordion Item) */
#accordion-style-1 .card {
    border: none !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0 !important;
}

#accordion-style-1 .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Card Header */
#accordion-style-1 .card-header {
    background: #ffffff !important;
    border-bottom: none !important;
    padding: 0 !important;
    scroll-margin-top: 90px; /* Prevent fixed navbar from hiding the active heading */
}

#accordion-style-1 .card-header h5 {
    margin: 0;
}

/* Collapsible Heading Text */
.coll-heading {
    display: block;
    padding: 24px 30px !important;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b !important;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    background-color: transparent;
}

.coll-heading:hover {
    color: #4f46e5 !important;
    background-color: #f8fafc;
}

/* Hide the default pseudo-element icon if it exists */
.coll-heading::before {
    display: none !important;
}

/* Custom Accordion Indicator (Right Side) */
.coll-heading::after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: 'FontAwesome';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.coll-heading:hover::after {
    color: #4f46e5;
}

.coll-heading[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
    color: #ec4899;
}

/* When active/expanded */
.coll-heading[aria-expanded="true"] {
    color: #ec4899 !important;
    background-color: #fdf2f8 !important;
    border-left: 5px solid #ec4899 !important;
    border-bottom: 1px solid #f1f5f9;
}

/* Card Body (Content) */
#accordion-style-1 .card-body {
    padding: 30px !important;
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    background-color: #fafbfc;
}

#accordion-style-1 .card-body p {
    margin-bottom: 20px;
}

#accordion-style-1 .card-body p:last-child {
    margin-bottom: 0;
}

#accordion-style-1 .card-body strong {
    color: #1e293b;
    font-weight: 600;
}

/* Lists in Body */
#accordion-style-1 .card-body ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}

#accordion-style-1 .card-body ul li {
    margin-bottom: 10px;
    position: relative;
}

/* Links */
#accordion-style-1 .card-body a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

#accordion-style-1 .card-body a:hover {
    color: #ec4899;
    text-decoration: underline;
}

/* Images in Content */
#accordion-style-1 .card-body img {
    border-radius: 12px;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 25px auto;
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#accordion-style-1 .card-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
}

/* Iframe Video Wrapper */
.help-video-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.15);
    margin: 10px 0;
}

/* Scrollbar beautification */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .premium-heading .heading-main {
        font-size: 2.2rem;
    }
    .premium-heading .heading-sub {
        font-size: 1.2rem;
    }
    .coll-heading {
        padding: 20px !important;
        font-size: 1.05rem;
    }
    #accordion-style-1 .card-body {
        padding: 20px !important;
    }
    .coll-heading::after {
        right: 20px;
    }
}

/* Navbar Styles */
.custom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
}

body {
    padding-top: 110px !important; /* Space for the taller fixed navbar */
}

.custom-navbar .nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-navbar .nav-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.custom-navbar .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.custom-navbar .nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-navbar .nav-links a:hover {
    color: #ec4899;
}

.custom-navbar .nav-links .btn-contact {
    background: linear-gradient(to right, #22c55e, #16a34a); /* Line Green */
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-navbar .nav-links .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .custom-navbar {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .custom-navbar .nav-brand {
        font-size: 1.2rem;
    }
    
    /* Hide the redundant text link on mobile to save space */
    .custom-navbar .nav-links a:not(.btn-contact) {
        display: none;
    }
    
    .custom-navbar .nav-links .btn-contact {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    body {
        padding-top: 60px !important;
    }
}
