/* =========================================================
   TPSC NOTES - MODERN GLOBAL DESIGN SYSTEM
   Version 1.0
   ========================================================= */


/* ---------------------------------------------------------
   DESIGN VARIABLES
   --------------------------------------------------------- */

:root {

    --tn-primary: #8BC34A;
    --tn-primary-dark: #689F38;
    --tn-primary-light: #F1F8E9;

    --tn-dark: #17202A;
    --tn-dark-2: #202B36;

    --tn-text: #333333;
    --tn-muted: #6B7280;

    --tn-white: #FFFFFF;
    --tn-light: #F7F9F5;
    --tn-border: #E5E7EB;

    --tn-radius: 12px;

    --tn-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06);

    --tn-shadow-hover:
        0 10px 30px rgba(0, 0, 0, 0.10);

}


/* ---------------------------------------------------------
   GLOBAL
   --------------------------------------------------------- */

.tn-container {

    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

}


.tn-header,
.tn-footer {

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.tn-header {

    position: sticky;
    top: 0;

    width: 100%;

    background: var(--tn-white);

    z-index: 99999;

    border-bottom: 1px solid var(--tn-border);

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.04);

}


.tn-header-main {

    background: var(--tn-white);

}


.tn-header-main .tn-container {

    min-height: 74px;

    display: flex;

    align-items: center;

    gap: 28px;

}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.tn-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


.tn-logo img {

    display: block;

    width: auto;

    max-width: 185px;

    max-height: 58px;

    object-fit: contain;

}


/* ---------------------------------------------------------
   DESKTOP NAVIGATION
   --------------------------------------------------------- */

.tn-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2px;

    flex: 1;

}


.tn-nav-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 74px;

    padding: 0 10px;

    border: 0;

    background: transparent;

    color: var(--tn-dark);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;

}


.tn-nav-link:hover {

    color: var(--tn-primary-dark);

    text-decoration: none;

}


.tn-ca-link {

    color: var(--tn-primary-dark);

}


.tn-arrow {

    font-size: 16px;

    line-height: 1;

    margin-top: -3px;

}


/* ---------------------------------------------------------
   DROPDOWN
   --------------------------------------------------------- */

.tn-nav-dropdown {

    position: relative;

}


.tn-dropdown-menu {

    position: absolute;

    top: calc(100% - 2px);

    left: 0;

    width: 310px;

    padding: 10px;

    background: var(--tn-white);

    border: 1px solid var(--tn-border);

    border-radius: 0 0 var(--tn-radius) var(--tn-radius);

    box-shadow: var(--tn-shadow-hover);

    opacity: 0;

    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

}


.tn-nav-dropdown:hover .tn-dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.tn-dropdown-menu a {

    display: block;

    padding: 11px 13px;

    border-radius: 8px;

    color: var(--tn-text);

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.tn-dropdown-menu a:hover {

    background: var(--tn-primary-light);

    color: var(--tn-primary-dark);

    text-decoration: none;

}


.tn-dropdown-menu strong {

    display: block;

    font-size: 14px;

    line-height: 1.3;

}


.tn-dropdown-menu small {

    display: block;

    margin-top: 3px;

    color: var(--tn-muted);

    font-size: 12px;

    line-height: 1.35;

}


/* ---------------------------------------------------------
   HEADER CTA
   --------------------------------------------------------- */

.tn-header-cta {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 17px;

    border-radius: 8px;

    background: var(--tn-primary);

    color: var(--tn-white) !important;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.tn-header-cta:hover {

    background: var(--tn-primary-dark);

    color: var(--tn-white) !important;

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(104, 159, 56, 0.25);

}


/* ---------------------------------------------------------
   MOBILE MENU BUTTON
   --------------------------------------------------------- */

.tn-mobile-toggle {

    display: none;

    width: 44px;

    height: 44px;

    margin-left: auto;

    padding: 9px;

    border: 1px solid var(--tn-border);

    border-radius: 8px;

    background: var(--tn-white);

    cursor: pointer;

}


.tn-mobile-toggle span {

    display: block;

    width: 22px;

    height: 2px;

    margin: 5px auto;

    background: var(--tn-dark);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;

}


.tn-toggle-active span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.tn-toggle-active span:nth-child(2) {

    opacity: 0;

}


.tn-toggle-active span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* ---------------------------------------------------------
   MOBILE MENU
   --------------------------------------------------------- */

.tn-mobile-menu {

    display: none;

    background: var(--tn-white);

    border-top: 1px solid var(--tn-border);

}


.tn-mobile-inner {

    max-width: 1200px;

    margin: 0 auto;

    padding: 8px 20px 20px;

}


.tn-mobile-inner > a,
.tn-mobile-dropdown-toggle {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 48px;

    padding: 0 5px;

    border: 0;

    border-bottom: 1px solid var(--tn-border);

    background: transparent;

    color: var(--tn-dark);

    font-size: 15px;

    font-weight: 600;

    text-align: left;

    text-decoration: none;

}


.tn-mobile-inner > a:hover {

    color: var(--tn-primary-dark);

    text-decoration: none;

}


.tn-mobile-dropdown {

    display: none;

    padding: 5px 0 5px 15px;

}


.tn-mobile-dropdown-open {

    display: block;

}


.tn-mobile-dropdown a {

    display: block;

    padding: 10px 5px;

    color: var(--tn-muted);

    font-size: 14px;

    text-decoration: none;

}


.tn-mobile-dropdown a:hover {

    color: var(--tn-primary-dark);

}


.tn-mobile-dropdown-toggle span {

    font-size: 20px;

    color: var(--tn-primary-dark);

}


.tn-mobile-cta {

    margin-top: 15px;

    justify-content: center !important;

    min-height: 48px !important;

    border: 0 !important;

    border-radius: 8px;

    background: var(--tn-primary);

    color: var(--tn-white) !important;

}


.tn-mobile-cta:hover {

    background: var(--tn-primary-dark);

}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.tn-footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--tn-dark) !important;
    color: #D7DDE3 !important;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.tn-footer-inner {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 34px 24px 26px !important;

    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 0.95fr !important;
    gap: 42px !important;

    box-sizing: border-box !important;
}

.tn-footer-brand,
.tn-footer-column {
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tn-footer-brand {
    max-width: 330px !important;
}

.tn-footer-logo {
    display: inline-block !important;
    margin: 0 0 10px !important;
}

.tn-footer-logo img {
    display: block !important;
    width: 165px !important;
    max-width: 100% !important;
    height: auto !important;
}

.tn-footer-brand p {
    max-width: 330px !important;
    margin: 0 0 12px !important;
    color: #D0D7DE !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.tn-footer-location {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #E1E6EA !important;
    font-size: 14px !important;
}

.tn-footer-location i {
    color: var(--tn-primary) !important;
}

.tn-footer-column h3 {
    margin: 2px 0 14px !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.tn-footer-column h3::after {
    content: "";
    display: block;
    width: 27px;
    height: 3px;
    margin-top: 7px;
    border-radius: 5px;
    background: var(--tn-primary);
}

.tn-footer-column > a {
    display: block !important;
    width: auto !important;
    margin: 0 0 9px !important;
    padding: 0 !important;

    background: transparent !important;
    color: #C9D1D9 !important;
    opacity: 1 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    text-decoration: none !important;

    text-shadow: none !important;
}

.tn-footer-column > a:hover {
    color: #8BC34A !important;
    transform: translateX(2px);
}

.tn-footer-support > a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
}

.tn-footer-support > a i {
    width: 16px !important;
    flex: 0 0 16px !important;
    margin-top: 3px !important;
    color: #8BC34A !important;
}

.tn-footer-support .tn-facebook {
    width: 38px !important;
    height: 38px !important;
    margin: 13px 0 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
}

.tn-footer-support .tn-facebook i {
    width: auto !important;
    flex: none !important;
    margin: 0 !important;
    color: #FFFFFF !important;
}

.tn-footer-support .tn-facebook:hover {
    background: #8BC34A !important;
    border-color: #8BC34A !important;
}

.tn-footer-support .tn-facebook:hover i {
    color: #17202A !important;
}

.tn-footer-bottom {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important;
}

.tn-footer-bottom-inner {
    width: 100% !important;
    max-width: 1180px !important;
    min-height: 56px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.tn-footer-bottom p {
    margin: 0 !important;
    color: #9FAAB5 !important;
    font-size: 13px !important;
}

.tn-footer-legal {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.tn-footer-legal a {
    color: #9FAAB5 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.tn-footer-legal a:hover {
    color: #8BC34A !important;
}

.tn-footer-legal span {
    color: #65717D !important;
}

@media (max-width: 991px) {
    .tn-footer-inner {
        grid-template-columns: 1.35fr 1fr 1fr !important;
        gap: 30px !important;
        padding: 32px 24px 24px !important;
    }

    .tn-footer-support {
        grid-column: 2 / 4 !important;
    }
}

@media (max-width: 767px) {
    .tn-footer-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 26px 22px !important;
        padding: 30px 20px 24px !important;
    }

    .tn-footer-brand {
        grid-column: 1 / -1 !important;
        max-width: none !important;
    }

    .tn-footer-support {
        grid-column: auto !important;
    }

    .tn-footer-bottom-inner {
        min-height: auto !important;
        padding: 15px 20px !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 7px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .tn-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 28px 20px 22px !important;
    }

    .tn-footer-brand {
        grid-column: auto !important;
    }

    .tn-footer-logo img {
        width: 160px !important;
    }

    .tn-footer-bottom-inner {
        padding: 15px !important;
    }

    .tn-footer-legal {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

/* =========================================================
   FINAL FOOTER TEXT VISIBILITY FIX
   ========================================================= */

footer.tn-footer .tn-footer-column a,
footer.tn-footer .tn-footer-column a:link,
footer.tn-footer .tn-footer-column a:visited {
    color: #FFFFFF !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}

footer.tn-footer .tn-footer-column a:hover {
    color: #8BC34A !important;
}

footer.tn-footer .tn-footer-support a {
    color: #FFFFFF !important;
}

footer.tn-footer .tn-footer-support a span {
    color: #FFFFFF !important;
}

footer.tn-footer .tn-footer-support a i {
    color: #8BC34A !important;
}

footer.tn-footer .tn-footer-brand p {
    color: #D7DDE3 !important;
    opacity: 1 !important;
}

footer.tn-footer .tn-footer-location,
footer.tn-footer .tn-footer-location span {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

footer.tn-footer .tn-footer-bottom p,
footer.tn-footer .tn-footer-legal a {
    color: #AEB8C2 !important;
    opacity: 1 !important;
}
