/* =========================================================
   NEEDIT / SITE GLOBAL STYLES
   ========================================================= */


/* =========================================================
   BASE / GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    background-color: #ffffff;
    color: #0f172a;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}

[x-cloak] {
    display: none !important;
}


/* =========================================================
   MEDIA SAFETY
   Prevent images/media from making the page wider
   ========================================================= */

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}


/* =========================================================
   FORM ELEMENTS
   ========================================================= */

input,
textarea,
select,
button {
    font-family: inherit;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.5rem;

    background-color: #1f47f5;
    color: #ffffff;

    font-weight: 600;

    border-radius: 0.75rem;
    border: 1px solid transparent;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary:hover {
    background-color: #1735e1;
    transform: translateY(-1px);

    box-shadow:
        0 4px 12px -2px rgba(31, 71, 245, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.5rem;

    background-color: #ffffff;
    color: #1e293b;

    font-weight: 600;

    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;

    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
    background-color: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;

    box-shadow:
        0 1px 2px 0 rgba(15, 23, 42, 0.04),
        0 1px 3px 0 rgba(15, 23, 42, 0.06);

    transition: all 0.2s ease;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-field {
    width: 100%;

    padding: 0.75rem 1rem;

    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;

    font-size: 1rem;

    color: #0f172a;
    background-color: #ffffff;

    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;

    border-color: #3366ff;

    box-shadow:
        0 0 0 3px rgba(51, 102, 255, 0.12);
}

.input-field::placeholder {
    color: #94a3b8;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}


/*
 * Main site container.
 *
 * IMPORTANT:
 * width: 100% + max-width prevents the container
 * from becoming wider than the viewport.
 */

.container-max {
    width: 100%;
    max-width: 1280px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .container-max {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}


/* =========================================================
   GRID PATTERNS
   ========================================================= */

.grid-pattern-sm {
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px);

    background-size: 24px 24px;
}

.grid-pattern-md {
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px);

    background-size: 32px 32px;
}

.grid-pattern-lg {
    background-image:
        linear-gradient(#e2e8f0 1px, transparent 1px),
        linear-gradient(90deg, #e2e8f0 1px, transparent 1px);

    background-size: 48px 48px;
}

.grid-pattern-dot {
    background-image:
        radial-gradient(
            circle,
            #cbd5e1 1px,
            transparent 1px
        );

    background-size: 24px 24px;
}

.grid-pattern-dark {
    background-image:
        linear-gradient(#ffffff 1px, transparent 1px),
        linear-gradient(90deg, #ffffff 1px, transparent 1px);

    background-size: 48px 48px;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.nav-link {
    position: relative;

    font-weight: 500;
    color: #334155;

    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1f47f5;
}

.nav-link.active {
    color: #1f47f5;
}

.nav-link.active::after {
    content: '';

    position: absolute;

    bottom: -4px;
    left: 0;
    right: 0;

    height: 2px;

    background-color: #1f47f5;

    border-radius: 2px;
}


/* =========================================================
   SWIPER
   ========================================================= */

.swiper-pagination-bullet {
    background: #3366ff !important;
    opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #1f47f5 !important;
}


/* =========================================================
   AOS
   ========================================================= */

[data-aos] {
    pointer-events: auto;
}


/* =========================================================
   LEGACY / PROFILE COMPONENTS
   These styles are kept compatible but cannot create
   viewport-wide horizontal overflow.
   ========================================================= */

.flip-card {
    width: 100%;
    height: 270px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;

    width: 100%;
    height: 100%;

    text-align: center;

    transition: transform 0.8s;

    transform-style: preserve-3d;

    box-shadow:
        0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;

    width: 100%;
    height: 100%;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    box-shadow:
        0 4px 8px 0 rgba(0, 0, 0, 0.2);

    transform: rotateY(180deg);
}


/* =========================================================
   PROFILE BACKGROUND
   ========================================================= */

.profilebg {
    position: relative;

    width: 100%;
    max-width: 100%;

    min-height: 500px;

    background-image: url('../img/profilebg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


/* =========================================================
   PROFILE BOX
   ========================================================= */

.profile-box {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: calc(100% - 40px);
    max-width: 1000px;

    min-height: 420px;
    height: auto;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.5);
}


/* =========================================================
   PROFILE IMAGE
   ========================================================= */

.userpf {
    overflow: hidden;

    position: absolute;

    top: -50px;
    left: 50%;

    transform: translateX(-50%);
}


/* =========================================================
   PROFILE DETAILS
   ========================================================= */

.profiledetails {
    margin-top: 100px;
}


/* =========================================================
   ADDRESS
   ========================================================= */

.addrs {
    width: 100%;
    max-width: 100%;

    padding-left: 100px !important;
    padding-right: 100px !important;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: relative;
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   UTILITY
   ========================================================= */

.hide {
    display: none;
}


/* =========================================================
   TAB CONTENT
   ========================================================= */

.tab-content {
    width: 100%;
    max-width: 100%;

    padding: 25px;
}


/* =========================================================
   MATERIAL TABS
   ========================================================= */

#material-tabs {
    position: relative;

    display: block;

    width: 100%;
    max-width: 100%;

    padding: 0;

    border-bottom: 1px solid #e0e0e0;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;
}

#material-tabs > a {
    position: relative;

    display: inline-block;

    text-decoration: none;

    padding: 22px;

    text-transform: uppercase;

    font-size: 14px;
    font-weight: 600;

    color: #424f5a;

    text-align: center;

    white-space: nowrap;
}

#material-tabs > a.active {
    font-weight: 700;
    outline: none;
}

#material-tabs > a:not(.active):hover {
    background-color: inherit;
    color: #7c848a;
}


/* =========================================================
   TAB ACTIVE BAR
   ========================================================= */

.yellow-bar {
    position: absolute;

    z-index: 10;

    bottom: 0;

    height: 3px;

    background: #458CFF;

    display: block;

    left: 0;

    transition: left 0.2s ease;
    -webkit-transition: left 0.2s ease;
}


/*
 * Keep your existing tab positioning.
 */

#tab1-tab.active ~ span.yellow-bar {
    left: 0;
    width: 160px;
}

#tab2-tab.active ~ span.yellow-bar {
    left: 165px;
    width: 82px;
}

#tab3-tab.active ~ span.yellow-bar {
    left: 253px;
    width: 135px;
}

#tab4-tab.active ~ span.yellow-bar {
    left: 392px;
    width: 163px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.style_switch {
    position: relative;

    display: inline-block;

    width: 60px;
    height: 34px;
}

.style_switch input {
    opacity: 0;

    width: 0;
    height: 0;
}


/* =========================================================
   STANDARD SWITCH
   ========================================================= */

.switch {
    position: relative;

    display: inline-block;

    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;

    width: 0;
    height: 0;
}


/* =========================================================
   SLIDER
   ========================================================= */

.slider {
    position: absolute;

    cursor: pointer;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #ccc;

    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;

    content: "";

    height: 26px;
    width: 26px;

    left: 4px;
    bottom: 4px;

    background-color: white;

    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: black;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* =========================================================
   SECOND SLIDER
   ========================================================= */

.s_slider {
    position: absolute;

    cursor: pointer;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #ccc;

    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.s_slider:before {
    position: absolute;

    content: "";

    height: 26px;
    width: 26px;

    left: 4px;
    bottom: 4px;

    background-color: white;

    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .s_slider {
    background-color: black;
}

input:focus + .s_slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .s_slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* =========================================================
   ROUNDED SLIDER
   ========================================================= */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* =========================================================
   MOBILE — TABLET
   ========================================================= */

@media (max-width: 768px) {

    .container-max {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .profile-box {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);

        min-height: 420px;
    }

    .addrs {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .tab-content {
        padding: 15px;
    }

    #material-tabs > a {
        padding: 16px 14px;
        font-size: 12px;
    }
}


/* =========================================================
   MOBILE — SMALL
   ========================================================= */

@media (max-width: 500px) {

    .container-max {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .profilebg {
        min-height: 500px;
        height: auto;
    }

    .profile-box {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);

        min-height: 400px;
    }

    .addrs {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .profiledetails {
        margin-top: 80px;
    }

    #material-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    #material-tabs > a {
        padding: 14px 12px;
        font-size: 11px;
    }
}


/* =========================================================
   EXTRA SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .container-max {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tab-content {
        padding: 10px;
    }
}