/*
Theme Name: Krystal Japan
Author: Michael Presbyla
Description: A custom theme for Krystal Japan.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, responsive
Text Domain: krystal-japan
*/
body{
font-family: "Cabin", sans-serif;
}
.hero {
    position: relative;
    color: white;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 10px solid;
    border-image: linear-gradient(to right, #FF340D 40%, #257FFF 40% 55%, #4BD9FF 55% 76%, #FFA627 76% 100%);
    border-image-slice: 1;
    width: 100%;
    box-sizing: border-box;
    margin-top: 83px;
    min-height: 340px;

    overflow: hidden; /* Ensure image doesn't overflow its container */
    background: linear-gradient(
        to bottom, /* Left side gradient */
        #2f5997, /* Top of left */
        #2b5190  /* Bottom of left */
    ),
    linear-gradient(
        to bottom, /* Right side gradient */
        #2860a5, /* Top of right */
        #356bb3  /* Bottom of right */
    );
    background-size: 50% 100%; /* Split the background into two halves */
    background-position: left, right; /* Position gradients on left and right sides */
    background-repeat: no-repeat; /* Prevent the gradients from repeating */

    width: 100vw; /* Ensures the section spans the full viewport width */
    box-sizing: border-box; /* Prevent padding from affecting width */
    overflow: hidden; /* Prevent any potential overflow */
}

@media (max-width: 1252px) {
    .hero {
        background: url(/wp-content/uploads/2025/01/bg-new.png);
        background-size: cover;
         background-position-x: 300px; 
        color: white;
        background-repeat: no-repeat;
        text-align: left;
        display: flex;

       
        align-items: center;
        justify-content: center;
        padding: 20px;
        border-bottom: 10px solid;
        border-image: linear-gradient(to right, #FF340D 40%, #257FFF 40% 55%, #4BD9FF 55% 76%, #FFA627 76% 100%);
        border-image-slice: 1;
        /* height: 50vh; */
        width: 100%;
        box-sizing: border-box;
      
        margin-top: 83px;
        min-height: 340px;
    }
    .bg-cl{
        background: 
        linear-gradient(to bottom, #2f5997, #2b5190) left,
        linear-gradient(to bottom, #2860a5, #356bb3) right;
    }
    .hero img{
        display: none;
    }
}
@media (max-width: 974px) {
    .hero {
    
        background-position: 0% 50%;
    }
    .hero-content {
        margin-left: 0 !important;
        max-width: 46% !important;
        width: 100%;
    }
    .hero h1 {
        font-size: 25px !important;
        font-weight: bold;
    }
}
@media (max-width: 767px) {
   
    .hero-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100%;
    }
    #hero .container{
max-width: 444px;
        margin-left: 0;
    }
  
}
@media (max-width: 663px) {
    .hero {
        background: none;
    }
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image maintains its proportions */
    z-index: 1; /* Places the image behind the content */
    transform: translateX(316px); /* Move the image 50px to the right */
}

.hero-content {
    position: relative;
    z-index: 2; /* Keeps the content above the image */
}



.hero-content {
    margin-left: 0 !important; /* Reset the margin */
    max-width: 100%;
    width: 100%;
}
.hero h1 {
    font-size: 1.4rem !important;
    font-weight: bold;
    text-align: left; /* Ensure the text is left-aligned within the container */
    max-width: 534px;
}

.hero h1 {
    font-size: 1.4rem !important;
    font-weight: bold;
}
.hero p {
    font-size: 0.9375rem;
}
.btn-custom {
    background-color: #007bff;
    border-color: #007bff;
}
.quote-section {
    padding: 40px 0;
    background-color: #f8f9fa;
	padding-top: 35px !important;
	margin-bottom: -28px !important;
}
.quote-section .quote-text {
    font-size: 1.5rem;
    font-weight: bold;
}
.quote-section .quote-author {
    text-align: right;
}
.quote-section .quote-author p {
    margin: 0;
}
.info-section {
    padding: 40px 0;
   
}
.info-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.contact-info, .about-info {
    margin-bottom: 20px;
}
.contact-info p, .about-info p {
    margin-bottom: auto;
}
.contact-section {
    padding: 40px 0;
}
.contact-section h2 {
    margin-bottom: 20px;
}
section {
    padding-top: 70px !important;
}
button {
    display: inline-block;
    padding: 10px 20px !important;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
  
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0px !important; /* Rounded corners */
}

footer {
    background-color: #11233c;
    color: white;
    padding: 40px 0;
    border-bottom: 10px solid !important;
    border-image: linear-gradient(to right, #FF340D 40%, #257FFF 40% 55%, #4BD9FF 55% 76%, #FFA627 76% 100%) !important;
    border-image-slice: 1 !important;
}
footer .footer-logo img {
    max-height: 50px;
}
footer .footer-links {
    list-style: none;
    padding: 0;
}
footer .footer-links li {
    margin-bottom: 10px;
}
footer .footer-links a {
    color: white;
    text-decoration: none;
}
footer .footer-links a:hover {
    text-decoration: underline;
}
footer .social-icons a {
    color: white;
    font-size: 24px;
    margin-right: 10px;
}
footer .social-icons a:hover {
    color: #007bff;
}
.dropdown-item img {
    vertical-align: middle;
}
.dropdown-text {
    padding-left: 10px;
}
      #backToTop {
            display: none; /* Hidden by default */
            position: fixed; /* Fixed position */
            bottom: 20px; /* Place it at the bottom */
            right: 20px; /* Place it 20px from the right */
            z-index: 99; /* Ensure it is above other elements */
            border: none; /* Remove borders */
            outline: none; /* Remove outline */
           background: linear-gradient(to right, #1c3f91, #6ca0d6); /* Replace with your gradient colors */
            color: white; /* Set a text color */
            cursor: pointer; /* Add a mouse pointer on hover */
              padding: 10px 20px;
            border-radius: 10px; /* Rounded corners */
            font-size: 1rem; /* Increase font size */
        }

        #backToTop:hover {
            background: linear-gradient(to right, #6ca0d6, #1c3f91); /* Replace with your hover gradient colors */
        }
		#section1{
		background-color:#e3eeff;
		}
}
    /* Style for footer links */
    footer a {
        color: #ffffff !important; /* Default color */
        text-decoration: none; /* Remove underline from links */
        transition: color 0.3s; /* Smooth transition for color change */
    }

    footer a:hover {
        color: #fb8636 !important; /* Hover color */
text-decoration:none !important;
    }

    footer .footer-logo img {
        max-width: 215px;
margin-bottom:20px;
    }

    footer .social-icons {
        margin-top: 10px;
text-align:right;
    }

.social-icons  a:hover {
 color:#11233c !important;
}

#ot-sdk-btn, #ot-sdk-btn:focus, #ot-sdk-btn.ot-sdk-show-settings, #ot-sdk-btn.ot-sdk-show-settings:focus, #ot-sdk-btn.ot-sdk-show-settings:focus-visible{
background:transparent !important;
border:none !important;
padding:0 !important;
color:#ffffff !important;
font-weight:400 !important;
font-size:1rem !important;
outline: none !important;
}
#ot-sdk-btn:hover{
background:transparent !important;
border:none !important;
padding:0 !important;
color:#fb8636  !important;
text-decoration:none !important;
font-weight:400 !important;
font-size:1rem !important;
}
        a {
            color: #fb8636;
        }

        a:hover {
            color: #fb8636;
        }

        .navbar-toggler {
            border: none;
        }

        /* Style for the navbar-toggler-icon when it's active */
        .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
            background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 4l22 22M4 26L26 4'/%3E%3C/svg%3E");
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
            padding-top: 60px;
        }

        .modal-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            height: auto;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        #onetrust-banner-sdk {
            max-width: 100% !important;
            /* margin: 10 auto !important; */
        }

        /* Custom class for navbar-toggler */
        .custom-navbar-toggler,
        .custom-navbar-toggler:focus,
        .custom-navbar-toggler:active,
        .custom-navbar-toggler:not(:hover) {
            background: none;
        }

        /* Ensure the override is applied */
        .navbar .navbar-toggler.custom-navbar-toggler:hover {
            /* Any specific hover styles you want */
            background: none;
        }
.modal-content button{
    margin-top: 15px !important;
max-width:480px !important;
}
.modal-content {

max-width:480px !important;
}
#modal-buttons{
    display: flex !important;
    flex-direction: column !important;
}
.close{
display: flex;
    flex-direction: row-reverse !important;
    font-size: 2rem !important;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
	margin: 0px;
}

@media only screen and (max-width: 768px) {
    .dropdown-menu {
        display: none !important;
    }
    .dropdown-menu.show {
        display: block !important;
    }
}


.global-close {
    width: 50px;
    height: 30px;
    cursor: pointer;
}


.color-change {
    transition: fill 0.3s ease;
}

/* Apply styles on desktop */
@media (min-width: 768px) {
    .nav-item.dropdown:hover .color-change {
        color: #257FFF;
    }

    .nav-item.dropdown:hover .global-close {
        transform: rotateX(180deg) !important;
        transition: transform 0.3s ease !important;
        color: #257FFF !important;
    }
}

/* Styles for when the dropdown is activated on mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-item.dropdown.active .color-change {
        color: #257FFF;
    }

    .nav-item.dropdown.active .global-close {
        transform: rotateX(180deg) !important;
        transition: transform 0.3s ease !important;
        color: #257FFF !important;
    }
}


/* Ensure SVGs are displayed inline */
.svg-inline {
    display: inline-block;
    vertical-align: middle; /* Aligns the SVGs vertically centered */
}

.dropdown-toggle::after {
    display: none !important;

}

       #inquiries-section h5 {
            font-weight: bold;
        }
        #inquiries-section p a {
             text-decoration: none;
                color: #fb8636;
        }
        #inquiries-section p a:hover {
            text-decoration: underline;
        }
#inquiries-section h2{
font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.desktopitem
{
display:block;
}
.mobileitem
{
display:none;
}
@media (max-width: 991px) {
.navbar-brand img{
max-width: 121px !important;
}

#section3{
padding-top:0px !important;
}
.dropdown-item{
padding-right: 0px !important;
padding-top:0px !important;
padding-bottom:0px !important;
padding-left:10px !important;
}
.info-section, .contact-section, footer .container{
padding-left:20px !important;
}
.navbar-toggler{

    background: transparent;

}
.navbar-toggler:hover {

    background: transparent;

}
.navbar button:hover {
    background: transparent;
}
.navbar-light .navbar-toggler, .navbar-light .navbar-toggler:focus,.navbar-light .navbar-toggler:active  {

      border: none;
}
}
#navbarDropdown{
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: -5px;
}
.color-change, .global-close{
    width: 45px;

}
.global-close{

margin-left:-49px;
}
.container-fluid {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
}

.card {
    min-height: 475px !important;
    box-shadow: 0 2px 4px 0 rgba(195, 196, 198, .7);
}

.card-link {
    position: absolute;
    bottom: 20px;
}

.pdf-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-item {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.pdf-icon {
    width: 80px; /* size of the PDF icon */
    height: auto;
    margin: 0 auto;
}

.pdf-link {
    font-size: 16px;
    text-decoration: none;
    color: #000; /* text color */
}

.pdf-link:hover {
    text-decoration: underline;
}
.card-text p{
font-size:1.0em;
}
.contact-links{
color: #161616; 
   
    text-decoration: underline; 
    text-decoration-color: #fb8636 ;
}
footer .social-icons {
    margin-top: 10px;
    text-align: right;
}
footer a{
color:#ffffff;
}
footer a:hover{
color:#fb8636;
text-decoration:underline;
}
.footer-links a:not(:last-child) {

    border-right: 1px solid #ccc;
    padding-right: 10px;
    margin-right: 10px;
}
#ot-sdk-btn.ot-sdk-show-settings, #ot-sdk-btn.optanon-show-settings {
  
    border-right: 1px solid #ccc !important;
    padding-right: 10px !important;
    margin-right: 10px !important;
}

@media (max-width: 767px) {
.contact-us-foot{
margin-top:30px;
}
.footer-links a,#ot-sdk-btn.ot-sdk-show-settings, #ot-sdk-btn.optanon-show-settings {

    font-size:12px !important;
}
.footer-links{
    display: flex;
    flex-direction: column;
    gap: 10px;
align-items:center;
}
.footer-links a{

    border-right: none !Important;
 padding-right: 0px !important;
    margin-right: 0px !important;
  
}
.coprtr{
margin-top:15px !important;
}
.rc-anchor-checkbox-label {
    font-family: 'Cabin';
    font-size: 10px !important;
 
}
#tfa_4{
max-width:315px;
}
form{
padding-left:0 !important;
}
.coprtr .text-left{
text-align:center !important;
}
.footer-logo {

text-align:center;
}
.item1 {
    order: 1;
}

.item2 {
    order: 2;
}
#ot-sdk-btn.ot-sdk-show-settings, #ot-sdk-btn.optanon-show-settings {
    border-right: none !Important;
    padding-right: 0px !important;
    margin-right: 0px !important;
}
.desktopitem
{
display:none;
}
.mobileitem
{
display:block;
}
}
.h2, h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

@media (min-width: 768px) {
.contact-us-foot {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%; /* Ensures full height for flexbox to work */
}

.social-icons {
    margin-top: auto; /* Push icons to the bottom */
}
footer .social-icons {
    margin-top: 10px;
    text-align: right;
}

.coprtr{
  display: flex;
}

#back-to-top {
	    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
	text-align: center;
    background: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    position: fixed;
    bottom: 40px;
    right: -100px; /* Initially off-screen */
    z-index: 999;
    cursor: pointer !important;
    transition: right 0.5s ease, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
		width:45px;
	        padding: 0px;
        padding-top: 7px;

}
#back-to-top svg{
	cursor:pointer;
}


#back-to-top.show {
    right: 0px; /* Slide the button in from the right */
    opacity: 1;
    visibility: visible;
	 cursor: pointer !important;
}


.footer-links{
 
     
        margin-left: auto;
}
}

#section3 button, #locationModal button {
    background: #00548a !important;
    border: none;
    border-radius: 8px !important;
    color: #ffffff;
    font-weight: 600;
}

#section3 button:hover, #locationModal button:hover{
background:#0056ad !important;
 
}

#externalModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* dark background */
}

#externalModalContent {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#externalModal img {
  max-width: 220px;
  margin-bottom: 20px;
}

#externalModal  .modal-text {
  font-size: 20px;
  margin-bottom: 20px;
  color: #18283f;
}
#externalModal  .modal-text-desc {
color: #18283f;
    font-size: 14px;
    line-height: 28px;
}
#externalModal  .modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#externalModal  .modal-button {
  padding: 10px 30px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

 #externalModal  .cancel-button {
  background-color: #009FE3;
  color: white;
}
    
 #externalModal  .proceed-button {
  background-color: #009FE3;
  color: white;
}
 #externalModal  .cancel-button:hover, #externalModal  .proceed-button:hover {
 background-color: #009FE3;
  color: white;
}
 #externalModal  #closeModal {
 font-size: 33px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    float: right;
    margin-top: -21px;
}

 #externalModal  #closeModal:hover {
  color: #009FE3;
}

@media (max-width: 767px) {
html {
font-size: 12px;
}
}

/* Hide the hamburger menu button on smaller screens */
.navbar-toggler {
    display: none;
}

.policies{
margin-top:30px !important;
}
/* Ensure the navbar links and logo are aligned in a row on mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        display: flex !important; /* Show the links even on mobile */
        justify-content: flex-end; /* Align links to the right */
        align-items: center; /* Center items vertically */
        flex-grow: 1; /* Allow navbar-collapse to take up space */
    }

    .navbar-brand {
        margin-right: 20px; /* Add some space between the logo and the links */
    }

    .navbar-nav {
        flex-direction: row; /* Keep links in a row */
        gap: 20px; /* Space between links */
    }

    .dropdown-menu {
        position: relative; /* Adjust the dropdown to display nicely */
        width: 100%;
        margin: 0;
    }
    
    /* Ensure that the container displays flex on mobile to keep items in a single row */
   .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
	.navbar>.container, .navbar>.container-fluid {
    flex-wrap: nowrap
}
.navbar-nav .dropdown-menu {
    position: absolute;
    float: none;
    margin-left: -78px !important;

}
.policies{
margin-top:15px !important;
}
}

.captchaHelp{
display:none !important;
}
.wFormContainer .wFormHeader {
display:none !important;
}
.wForm{
margin-top:0px !important;
}
.wFormFooter {
display:none !important;
}

.wFormContainer .supportInfo {
display:none !important;
}
.table-responsive td, .table-responsive th{
padding:10px;
} 
 #modal-buttons a{
display:contents;
}
#ot-sdk-btn{
 padding-top: 3px !important;
}
#ot-sdk-btn.ot-sdk-show-settings, #ot-sdk-btn.optanon-show-settings {
    border-right: none !important;
    padding-right: 0px !important;
    margin-right: 0px !important;
}


/* ===== News section ===== */
.news-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.news-section__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
 
}

/* list wrapper */
.news-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;              /* space between items */
}

/* item = [date | content] grid */
.news-card {
  display: grid;
  grid-template-columns: 160px 1fr; /* date column | content column */
  gap: 1rem;
  align-items: start;
  padding: 0 0 1rem;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 960px){
  .news-card { grid-template-columns: 200px 1fr; }
}
@media (max-width: 640px){
  .news-card { grid-template-columns: 1fr; }
 
}

/* date (left col) */
.news-archive-card__date {
  color: #6b7280;
  font-size: 0.95rem;
  white-space: nowrap;       /* keep single line */
}

/* title (right col, first row) */
.news-card__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.35;
}

/* title link */
.news-card__title a {
  
  text-decoration: none;
  color:#212529;

}
.news-card__title a:hover,
.news-card__title a:focus {
  text-decoration: underline;
  outline: none;
}

/* excerpt + read more must live under the title (right column) */
.news-card__excerpt,
.news-card__readmore {
  grid-column: 2 / span 1;
}

@media (max-width: 640px){
  .news-card__excerpt,
  .news-card__readmore { grid-column: 1 / -1; }
}

.news-card__excerpt {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.96rem;
  color:#212529;
}

.news-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  color:#212529;
  text-decoration: none;
}
.news-card__readmore:hover { text-decoration: underline;color:#212529; }

/* More button */
.news-more { text-align: center; margin-top: 1.75rem; }
.news-more__button {
  display: inline-block;
  background: #b73930;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
}
.news-more__button:hover { background: #a13028; }
