.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

* {
    font-family: 'Roboto Slab', serif;
}

body {
    font-family: 'Roboto Slab', serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto Slab', serif !important;
    letter-spacing: 0.01em;
}

.section-title {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(0, 24, 62, 0.4), rgba(0, 24, 62, 0.8));
}

.glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root {
    --cvn-blue: #1f2c70;
    --cvn-blue-dark: #11194c;
    --cvn-yellow: #e0b109;
    --cvn-text: #ffffff;
}

.cvn-top-nav {
    /* background: linear-gradient(90deg, rgba(17, 25, 76, 0.86), rgba(79, 94, 155, 0.84)); */
    /* box-shadow: 0 8px 30px rgba(8, 13, 40, 0.35); */
}

/* Default (transparent) */
.cvn-top-nav {
    transition: all 0.3s ease;
    background: transparent;
}

/* On scroll */
.cvn-top-nav.scrolled {
    background: #6692c5;
    /* light bg */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Change text color after scroll */
.cvn-top-nav.scrolled .cvn-nav-link {
    color: #000;
}

.cvn-nav-link {
    color: var(--cvn-text);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1;
    padding: 0.75rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 180ms ease, background-color 180ms ease;
}

.cvn-nav-link:hover {
    color: #fef3c7;
}

.cvn-nav-link.is-active {
    background-color: var(--cvn-yellow);
    color: #0b132c;
}

.cvn-dropdown,
.cvn-sub-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 220px;
    background: #e7e7e7;
    color: #101522;
    border: 1px solid #cbcfd8;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 180ms ease;
    z-index: 60;
}

.cvn-sub-dropdown {
    top: -1px;
    left: calc(100% - 1px);
    transform: translateX(8px);
}

.cvn-item:hover>.cvn-dropdown,
.cvn-item:focus-within>.cvn-dropdown,
.cvn-sub-item:hover>.cvn-sub-dropdown,
.cvn-sub-item:focus-within>.cvn-sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

.cvn-dropdown a,
.cvn-sub-dropdown a {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.15;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid #cfd4dd;
}

.cvn-dropdown a:hover,
.cvn-sub-dropdown a:hover,
.cvn-dropdown a:focus-visible,
.cvn-sub-dropdown a:focus-visible {
    background: var(--cvn-yellow);
    color: #151515;
    outline: none;
}

.cvn-dropdown li:last-child a,
.cvn-sub-dropdown li:last-child a {
    border-bottom: none;
}

.cvn-mobile-link {
    display: block;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.15;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cvn-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cvn-menu-icon {
    width: 26px;
    height: 20px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.cvn-menu-icon span {
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background-color: #fde047;
    display: block;
}

.cvn-menu-icon-dark span {
    background-color: #6b7280;
}

.section-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 500ms ease;
    z-index: 1;
}

.hero-media.video-ready iframe {
    opacity: 1;
}

.hero-media video,
.hero-media .hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media .hero-fallback {
    opacity: 1;
    transition: opacity 400ms ease;
}

.hero-media.video-ready .hero-fallback {
    opacity: 0;
}

.home-hero-content h1,
.home-hero-content p,
.home-hero-content .hero-cta {
    opacity: 0;
    transform: translateY(28px);
    animation: heroRise 900ms ease forwards;
}

.home-hero-content p {
    animation-delay: 220ms;
}

.home-hero-content .hero-cta {
    animation-delay: 380ms;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 50%);
    z-index: 2;
    pointer-events: none;
}

@keyframes heroRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1279px) {
    .cvn-desktop-menu {
        display: none;
    }
}

@media (min-width: 1280px) {
    .cvn-desktop-menu {
        display: flex;
    }
}

@media (max-width: 767px) {
    .cvn-top-nav {
        height: 74px;
    }

    #cvn-menu-button-extra {
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        height: 40px;
        width: 40px;
        background: rgb(252 223 71);
        ;
        border-color: #11194c;
    }

    #cvn-menu-button {
        margin-top: 0;
    }
}

/* Hide default cursor (optional but recommended) */
body {
    cursor: none;
}

/* SMALL DOT */
#cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

/* LIGHT GLOW RING */
#cursor-ring {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.08);
    /* light color */
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

.breadcrumb-design {
    margin-top: 60px;
}

.tiptap-content img {
    display: block;
    margin: 20px auto;
    max-width: 30%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}


.block-item {
    padding-bottom: 20px;
}

.section-heading {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.rich-text,
.tiptap-content {
    font-size: 16px;
    line-height: 1.9 !important;
    text-align: justify !important;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-image img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.popup-image img:hover {
    transform: scale(1.05);
}

/* Accordion Custom Styles */
.accordion-button {
    width: 100%;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    padding: 15px;
    border: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: #0056b3;
    color: white;
}

.accordion-body {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
}

/* Tabs Custom Styles */
.nav-tabs .nav-link {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
}

.nav-tabs .nav-link.active {
    background-color: #0056b3;
    color: white;
}

.nav-tabs .nav-link:hover {
    background-color: #0056b3;
    color: white;
}

/* Ensure tab content is justified */
.tab-content {
    background-color: #f8f9fa;
    /* Light background */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;

}

/* Fix scrollbar issue */
.tab-pane {
    white-space: normal !important;
    overflow-x: hidden !important;
}

/* ================= TABLE ================= */

.tiptap-content table,
.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    overflow-x: auto;
}

.tiptap-content th,
.rich-text th {
    background-color: #6692c5;
    color: #080808;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.tiptap-content td,
.rich-text td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.tiptap-content tr:nth-child(even),
.rich-text tr:nth-child(even) {
    background-color: #f9fafb;
}

.tiptap-content tr:hover,
.rich-text tr:hover {
    background-color: #f1f5f9;
}

.tiptap-content table {
    overflow-x: auto;
}


/* ================= TYPOGRAPHY ================= */

.tiptap-content,
.rich-text {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    color: #374151;
}

/* Paragraph */
.tiptap-content p,
.rich-text p {
    margin-bottom: 14px;
}

/* Headings */
.tiptap-content h1,
.rich-text h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 14px;
}

.tiptap-content h2,
.rich-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tiptap-content h3,
.rich-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tiptap-content h4,
.rich-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tiptap-content h5,
.rich-text h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tiptap-content h6,
.rich-text h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}


/* ================= LINKS ================= */

.tiptap-content a,
.rich-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px !important;
}

.tiptap-content a:hover,
.rich-text a:hover {
    color: #1d4ed8;
}


/* ================= OPTIONAL IMPROVEMENTS ================= */

/* Lists */
.tiptap-content ul,
.rich-text ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.tiptap-content ol,
.rich-text ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.tiptap-content li,
.rich-text li {
    margin-bottom: 6px;
}

/* Images */
.tiptap-content img,
.rich-text img {
    display: block;
    margin: 20px auto;
    max-width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Base button */
.tiptap-content a[data-as-button],
.tiptap-content a.btn,
.rich-text a[data-as-button],
.rich-text a.btn {
    display: inline-block;
    padding: 10px 18px;
    margin: 10px 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* PRIMARY */
.tiptap-content a[data-as-button],
.tiptap-content a.btn-primary,
.rich-text a[data-as-button],
.rich-text a.btn-primary {
    background-color: #2563eb;
    color: #fff !important;
}

.tiptap-content a[data-as-button]:hover,
.tiptap-content a.btn-primary:hover,
.rich-text a[data-as-button]:hover,
.rich-text a.btn-primary:hover {
    background-color: #1d4ed8;
    color: #fff !important;
}

/* OUTLINE */
.tiptap-content a[data-as-button].outline,
.tiptap-content a.btn-outline,
.rich-text a[data-as-button].outline,
.rich-text a.btn-outline {
    background-color: transparent;
    border: 2px solid #2563eb;
    color: #2563eb !important;
}

.tiptap-content a[data-as-button].outline:hover,
.tiptap-content a.btn-outline:hover,
.rich-text a[data-as-button].outline:hover,
.rich-text a.btn-outline:hover {
    background-color: #2563eb;
    color: #fff !important;
}

/* SUCCESS */
.tiptap-content a.btn-success,
.rich-text a.btn-success {
    background-color: #16a34a;
    color: #fff !important;
}
.tiptap-content a.btn-success:hover,
.rich-text a.btn-success:hover {
    background-color: #15803d;
}

/* DANGER */
.tiptap-content a.btn-danger,
.rich-text a.btn-danger {
    background-color: #dc2626;
    color: #fff !important;
}
.tiptap-content a.btn-danger:hover,
.rich-text a.btn-danger:hover {
    background-color: #b91c1c;
}