/* =========================================
   JAPANESE PREPARATION INSTITUTE
   PREMIUM HEADER
========================================= */

.jpi-header,
.jpi-header * {
    box-sizing: border-box;
}

.jpi-header {
    width: 100%;
    position: relative;
    z-index: 99999;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    font-family: "Inter", Arial, sans-serif;
}


/* =========================================
   MAIN CONTAINER
========================================= */

.jpi-container {
    width: 100%;
    max-width: 1400px;

    height: 82px;

    margin: 0 auto;

    padding: 0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================
   LOGO
========================================= */

.jpi-logo {
    display: flex;
    align-items: center;

    text-decoration: none !important;

    min-width: 225px;
}

.jpi-logo img {
    display: block;

    width: 190px;
    height: auto;

    object-fit: contain;
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.jpi-nav {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 3px;
}


/* Main Navigation Links */

.jpi-nav > a,
.jpi-dropdown > .jpi-dropdown-toggle {

    position: relative;

    display: inline-flex;

    align-items: center;

    padding: 11px 13px;

    color: #292929;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 600;

    border-radius: 8px;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}


/* Hover */

.jpi-nav > a:hover,
.jpi-dropdown:hover > .jpi-dropdown-toggle {

    color: #c8102e;

    background: #fff5f6;
}


/* Bottom Hover Line */

.jpi-nav > a::after,
.jpi-dropdown > .jpi-dropdown-toggle::after {

    content: "";

    position: absolute;

    left: 13px;
    right: 13px;

    bottom: 4px;

    height: 2px;

    background: #c8102e;

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.25s ease;
}


.jpi-nav > a:hover::after,
.jpi-dropdown:hover > .jpi-dropdown-toggle::after {

    transform: scaleX(1);
}


/* =========================================
   DROPDOWN
========================================= */

.jpi-dropdown {
    position: relative;
}


.jpi-dropdown-toggle {
    gap: 6px;
}


.jpi-dropdown-arrow {

    font-size: 10px;

    line-height: 1;

    transition:
        transform 0.25s ease;
}


.jpi-dropdown:hover .jpi-dropdown-arrow {

    transform: rotate(180deg);
}


/* =========================================
   DROPDOWN BOX
========================================= */

.jpi-submenu {

    position: absolute;

    top: calc(100% + 8px);

    left: 50%;

    min-width: 240px;

    padding: 8px;

    background:
        rgba(255, 255, 255, 0.98);

    border: 1px solid #eeeeee;

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(200, 16, 46, 0.04);

    transform:
        translateX(-50%)
        translateY(10px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

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

    z-index: 100000;
}


/* Show Dropdown */

.jpi-dropdown:hover .jpi-submenu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* Dropdown Arrow */

.jpi-submenu::before {

    content: "";

    position: absolute;

    top: -6px;

    left: 50%;

    width: 11px;

    height: 11px;

    background: #ffffff;

    border-left: 1px solid #eeeeee;

    border-top: 1px solid #eeeeee;

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* =========================================
   DROPDOWN LINKS
========================================= */

.jpi-submenu a {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    padding: 12px 13px;

    color: #333333;

    text-decoration: none !important;

    font-size: 12px;

    font-weight: 600;

    border-radius: 9px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}


/* Dropdown Hover */

.jpi-submenu a:hover {

    color: #c8102e;

    background: #fff5f6;

    padding-left: 17px;
}


/* =========================================
   DESKTOP ACTION BUTTONS
========================================= */

.jpi-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 225px;

    justify-content: flex-end;
}


/* =========================================
   STUDENT LOGIN
========================================= */

.jpi-portal-btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

    border: 1px solid #dedede;

    border-radius: 11px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 100%
        );

    color: #222222;

    text-decoration: none !important;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.1px;

    overflow: hidden;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* Login Shine */

.jpi-portal-btn::before {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 70%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.75),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left 0.55s ease;
}


.jpi-portal-btn:hover {

    color: #c8102e;

    border-color:
        rgba(200, 16, 46, 0.35);

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}


.jpi-portal-btn:hover::before {

    left: 130%;
}


/* =========================================
   APPLY NOW
========================================= */

.jpi-consult-btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 0 21px;

    border: 1px solid
        rgba(255,255,255,0.18);

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #d7193f 0%,
            #c8102e 48%,
            #9f001f 100%
        );

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 12px;

    font-weight: 750;

    letter-spacing: 0.2px;

    overflow: hidden;

    box-shadow:
        0 8px 22px
        rgba(200, 16, 46, 0.20),

        inset 0 1px 0
        rgba(255,255,255,0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Apply Shine */

.jpi-consult-btn::before {

    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 75%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.25),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left 0.6s ease;
}


.jpi-consult-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 13px 30px
        rgba(200, 16, 46, 0.32),

        inset 0 1px 0
        rgba(255,255,255,0.22);
}


.jpi-consult-btn:hover::before {

    left: 130%;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.jpi-menu-toggle {

    display: none;

    width: 44px;

    height: 44px;

    padding: 0;

    border: 1px solid #e2e2e2;

    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;
}


.jpi-menu-toggle span {

    display: block;

    width: 20px;

    height: 2px;

    background: #222222;

    border-radius: 10px;

    transition:
        all 0.3s ease;
}


/* =========================================
   MOBILE MENU
========================================= */

.jpi-mobile-menu {

    display: none;

    position: absolute;

    top: 82px;

    left: 0;

    width: 100%;

    padding: 15px 18px 20px;

    background:
        rgba(255,255,255,0.98);

    border-top:
        1px solid #eeeeee;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,0.09);

    z-index: 99998;
}


.jpi-mobile-menu.jpi-active {

    display: block;
}


/* =========================================
   MOBILE MAIN LINKS
========================================= */

.jpi-mobile-menu > a {

    display: block;

    width: 100%;

    padding: 13px 12px;

    margin-bottom: 3px;

    color: #222222;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 600;

    border-radius: 8px;

    transition:
        all 0.2s ease;
}


.jpi-mobile-menu > a:hover {

    color: #c8102e;

    background: #fff5f6;
}


/* =========================================
   MOBILE DROPDOWNS
========================================= */

.jpi-mobile-dropdown {

    width: 100%;

    margin-bottom: 3px;
}


.jpi-mobile-dropdown-toggle {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    padding: 13px 12px;

    border: 0;

    background: transparent;

    color: #222222;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    border-radius: 8px;

    cursor: pointer;

    text-align: left;

    transition:
        all 0.2s ease;
}


.jpi-mobile-dropdown-toggle:hover,
.jpi-mobile-dropdown-toggle.jpi-mobile-guide-active {

    color: #c8102e;

    background: #fff5f6;
}


.jpi-mobile-dropdown-arrow {

    font-size: 11px;

    transition:
        transform 0.25s ease;
}


.jpi-mobile-dropdown-toggle.jpi-mobile-guide-active
.jpi-mobile-dropdown-arrow {

    transform:
        rotate(180deg);
}


/* =========================================
   MOBILE SUBMENU
========================================= */

.jpi-mobile-submenu {

    display: none;

    padding:
        3px 0 5px 12px;
}


.jpi-mobile-submenu.jpi-submenu-active {

    display: block;
}


.jpi-mobile-submenu a {

    position: relative;

    display: block;

    padding:
        10px 12px 10px 25px;

    margin-bottom: 2px;

    color: #666666;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 500;

    border-radius: 8px;

    transition:
        all 0.2s ease;
}


.jpi-mobile-submenu a::before {

    content: "";

    position: absolute;

    left: 11px;

    top: 50%;

    width: 5px;

    height: 5px;

    background: #c8102e;

    border-radius: 50%;

    transform:
        translateY(-50%);
}


.jpi-mobile-submenu a:hover {

    color: #c8102e;

    background: #fff5f6;
}


/* =========================================
   PREMIUM MOBILE BUTTONS
========================================= */

.jpi-mobile-buttons {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 11px;

    margin-top: 16px;

    padding-top: 16px;

    border-top:
        1px solid #eeeeee;
}


/* Common Mobile Button */

.jpi-mobile-buttons a {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    margin: 0;

    padding: 0 12px;

    border-radius: 12px;

    text-decoration: none !important;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.15px;

    overflow: hidden;

    transition:

        transform 0.25s ease,

        box-shadow 0.25s ease,

        border-color 0.25s ease;
}


/* =========================================
   MOBILE STUDENT LOGIN
========================================= */

.jpi-mobile-portal {

    color: #222222 !important;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8f8f8 100%
        ) !important;

    border:
        1px solid #dddddd !important;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, 0.05);
}


.jpi-mobile-portal:hover,
.jpi-mobile-portal:active {

    color: #c8102e !important;

    border-color:
        rgba(200, 16, 46, 0.35)
        !important;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.08);
}


/* =========================================
   MOBILE APPLY NOW
========================================= */

.jpi-mobile-consult {

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #d7193f 0%,
            #c8102e 50%,
            #9f001f 100%
        ) !important;

    border:
        1px solid
        rgba(255,255,255,0.15)
        !important;

    box-shadow:

        0 7px 18px
        rgba(200, 16, 46, 0.22),

        inset 0 1px 0
        rgba(255,255,255,0.18);
}


.jpi-mobile-consult:hover,
.jpi-mobile-consult:active {

    transform:
        translateY(-2px);

    box-shadow:

        0 11px 25px
        rgba(200, 16, 46, 0.30),

        inset 0 1px 0
        rgba(255,255,255,0.22);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1180px) {

    .jpi-container {

        padding:
            0 22px;
    }


    .jpi-logo {

        min-width:
            195px;
    }


    .jpi-logo img {

        width:
            175px;
    }


    .jpi-nav > a,
    .jpi-dropdown >
    .jpi-dropdown-toggle {

        padding:
            10px 9px;

        font-size:
            12px;
    }


    .jpi-actions {

        min-width:
            195px;
    }


    .jpi-portal-btn,
    .jpi-consult-btn {

        padding:
            0 12px;

        font-size:
            11px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .jpi-container {

        height:
            72px;

        padding:
            0 18px;
    }


    /* Hide Desktop Navigation */

    .jpi-nav {

        display:
            none;
    }


    /* Hide Desktop Buttons */

    .jpi-actions {

        display:
            none;
    }


    /* Show Mobile Button */

    .jpi-menu-toggle {

        display:
            flex;
    }


    /* Mobile Menu Position */

    .jpi-mobile-menu {

        top:
            72px;
    }


    .jpi-logo {

        min-width:
            auto;
    }


    .jpi-logo img {

        width:
            165px;

        max-width:
            70vw;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .jpi-container {

        padding:
            0 14px;
    }


    .jpi-logo img {

        width:
            150px;
    }


    .jpi-menu-toggle {

        width:
            41px;

        height:
            41px;
    }


    .jpi-mobile-menu {

        padding-left:
            14px;

        padding-right:
            14px;
    }


    .jpi-mobile-buttons {

        gap:
            9px;

        margin-top:
            14px;

        padding-top:
            14px;
    }


    .jpi-mobile-buttons a {

        min-height:
            46px;

        border-radius:
            11px;

        font-size:
            11.5px;
    }

}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .jpi-mobile-buttons {

        grid-template-columns:
            1fr;

        gap:
            8px;
    }


    .jpi-mobile-buttons a {

        min-height:
            45px;
    }

}

.jpi-footer {
  --jpi-red: #e31d2f;
  --jpi-dark: #090f1c;
  --jpi-text: #f5f7fb;
  --jpi-muted: #a9b3c5;
  font-family: "Noto Sans Bengali", Arial, sans-serif;
  background:
    radial-gradient(circle at 5% 5%, rgba(227, 29, 47, .25), transparent 28%),
    radial-gradient(circle at 94% 86%, rgba(37, 211, 102, .10), transparent 25%),
    var(--jpi-dark);
  color: var(--jpi-text);
  overflow: hidden;
}
.jpi-footer-main {
  max-width: 1200px;
  margin: auto;
  padding: 65px 20px 48px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 70px;
  align-items: center;
}
.jpi-footer-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.jpi-footer-logo img {
  display: block;
  width: auto;
  height: 55px;
  max-width: 250px;
  object-fit: contain;
}
.jpi-footer-title {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.3;
  margin: 0 0 15px;
  color: #fff;
}
.jpi-footer-title span { color: var(--jpi-red); }
.jpi-footer-tagline {
  max-width: 580px;
  color: var(--jpi-muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}
.jpi-footer-right {
  border-left: 1px solid rgba(255, 255, 255, .12);
  padding-left: 55px;
}
.jpi-footer-right h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #fff;
}
.jpi-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.jpi-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 130px;
  padding: 12px 15px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: .25s ease;
}
.jpi-social:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: transparent;
}
.jpi-social-facebook:hover { background: #1877f2; }
.jpi-social-instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.jpi-social-tiktok:hover { background: #111; box-shadow: 3px 3px 0 #00f2ea, -3px -3px 0 #ff0050; }
.jpi-social-youtube:hover { background: #ff0000; }
.jpi-social-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.jpi-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.jpi-footer-bottom-inner {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: #929caf;
  font-size: 13px;
}
.jpi-footer-bottom a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
@media (max-width: 767px) {
  .jpi-footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 50px 20px 38px;
  }
  .jpi-footer-right {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 30px 0 0;
  }
  .jpi-social {
    min-width: calc(50% - 6px);
    justify-content: center;
  }
  .jpi-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .jpi-footer-left,
  .jpi-footer-right { text-align: center; }
  .jpi-footer-logo { margin-left: auto; margin-right: auto; }
  .jpi-footer-tagline { margin-left: auto; margin-right: auto; }
  .jpi-footer-right h3 { text-align: center; }
  .jpi-socials { justify-content: center; }
}
