/* Global Styles */

html{
    scroll-behavior: smooth;
}

* {
/*    font-family: 'Unbounded', sans-serif;*/
    scroll-behavior: smooth;
}

*:focus{
    box-shadow: none !important;
    outline: none !important;
    box-shadow: none !important;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color-white);
    cursor: pointer;
}

a:hover {
    opacity: 0.7;
}


p {
    margin-bottom: 0;
}

.text-ld-color{
    color: black
}

.text-white{
    color: var(--text-color-white);
}

.centered{
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-new-line{
    flex-basis: 100%;
    height: 0;
}

button{
    border: none;
    background-color: var(--primary-color);
    color: var(--text-color-white);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

button:hover{
    filter: brightness(0.9);
}

.card{
    border-radius: 10px;
    border: none;
    padding: 0;
    overflow: hidden;
}

div.scroling-mandatory{
    scroll-snap-type: y mandatory;
}

div.scroling-mandatory section{
    scroll-snap-align: start; 
}

/* MODULES */

.accordion-button:not(.collapsed){
    background-color: inherit !important;
}

.accordion-button::after{
    margin-left: 0;
}

.accordion *:focus{
    box-shadow: none !important;
    background-color: inherit !important;
}

.flatpickr-mobile{
    color: var(--text-color);
}

.flatpickr-mobile::placeholder{
    color: var(--text-color);
}

div.login_tg{
	display: inline-block;
	position: relative;
	height: max-content;
	padding: 1rem 2rem;
	margin-bottom: 1rem;
	border: 4px solid white;
	border-radius: 10px;
	text-align: center;
	width: 90%;
}
div.login_tg > *{
	display: block;
	color: var(--text-color-white);
	margin: 0 auto;
}

/* Navigation */
.navbar {
    background: var(--primary-color) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 48px;
}

.nav-link, .navbar-brand, .navbar-toggler {
    color: #fff !important;
}

.nav-link.active {
    color: #fff !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Hero Section */
.hero-section {
    background: url('/static/images/home_buy.png');
    background-size: cover;
    transform: translateZ(0);
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;

    will-change: background-image;
    min-height: 100%;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-section-content {
    background: linear-gradient(to right,var(--primary-color) 10%,rgba(0,0,0,0));
    display: inline-block; 
    padding-top: calc(100px + 2rem);
    padding-bottom: calc(100px + 2rem);
    padding-left: calc(20px + 2rem);
    padding-right: calc(60px + 2rem);
    /* padding: calc(10px + 0.5rem); */
}

.hero-section-content a {
    width: 250px;
    height: 70px;
}

/* Buttons */
.btn-main {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: .9em;
    font-weight: 600;
}

.btn-main:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-outline-main {
    border: 2px solid var(--secondary-color);
    color: var(--text-color-white);
    background: var(--secondary-color);
    padding: .9em;
    font-weight: 600;
}

.btn-outline-main:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Options Section */

/*.options-section .card>img{
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}*/

.options-section .custom-card,.in-bus .custom-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%; 
  display: flex;
  flex-direction: column;
  aspect-ratio: 3/4;
  position: relative;
}

.options-section .card-img-container,.in-bus .card-img-container {
  flex: 3;
  height: 100%; /* 3/4 */
  overflow: hidden;
}

.options-section .card-img-container img,.in-bus .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.options-section .card-text-container,.in-bus .card-text-container {
  flex: 1;
  width: 90%;
  margin: 0 5%;
  padding: 6px 32px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color-white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  position: absolute;
  bottom: 10px;
  border-radius: 20px;
  text-transform: uppercase;
}


.in-bus{
    margin-top: 3rem;
}


.in-bus .header-name,.rt-section .header-name{
    font-size: 8rem;
    position: absolute;
    top: -80px;
    background-image: linear-gradient(to top,var(--gradient-text), var(--gradient-text-second));
    -webkit-background-clip: text; /* For wider browser support */
    background-clip: text;
    -webkit-text-fill-color: transparent; /* For wider browser support */
    color: transparent;
}

.rt-section .header-name{
    position: relative;
    display: block;
    top: 0;
}

.discounts-section .header-name{
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 8rem;
/*    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;*/
    width: max-content;
    font-weight: 500;
    z-index: 1;
}

.discounts-section .information{
    position: absolute;
    text-align: justify;
    text-align-last: justify;
    bottom: 50px;
    left: 20%;
    width: max-content;
    background-color: var(--primary-color);
    padding: 20px 100px;
    gap: 5px;
}

.discounts-section div.row>img.discount-img{
    filter: brightness(0.65);
}


/* Features Section */
.feature-card {
    background-color: var(--gray-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(162,15,67,0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    color: black;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Routes Section */
.routes-section h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.route-card {
    background: var(--background-color);
/*    border: 1px solid var(--secondary-color);*/
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px var(--primary-color);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    color: var(--text-color);
    height: 100%;
    position: relative;
    cursor: pointer;
}

.route-card:hover {
    transform: translateY(-5px);
}

.route-card .when{
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary-color);
    color: var(--text-color-white);
    padding: 20px 10px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px var(--secondary-color);
    
}

.route-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.route-card h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.route-card .price{
    background-color: var(--primary-color);
    color: var(--text-color-white);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    bottom: 0px;
    right: 0px;
}
.route-map{
    position: relative;
    width: 100%;
/*    aspect-ratio: 4/2;*/
    display: flex;
    flex: 1 50%;
    flex-wrap: wrap;
}

.routes-map .point{
    padding: 10px 50px;
    text-align: center;
    border-radius: 10px;
    border-bottom: 5px solid #A20F43;
    color: var(--text-color);
    font-size: 1.25rem;
    height: max-content;
    width: 250px;
    margin: 20px 10px;
}

.routes-map .row{
    flex-flow: row wrap;
    width: 100%;
    margin: 10px 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 2.5rem 0 1rem 0;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */

@media (max-width: 1024px) {

.in-bus .header-name,.rt-section .header-name{
    font-size: 3rem;
    position: relative;
    top: 0;
}

.discounts-section .header-name{
    font-size: 2rem;
    position: relative;
    left: 5%;
    -webkit-text-stroke-width: 0;
    -webkit-text-stroke-color: none;

}

.discounts-section .information{
    padding: 5px 20px;
    position: relative;
    font-size: 1rem;
    left: 5%;
}

}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-section-content a {
        width: 80%;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }

    .hero-section-content {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }


    .discounts-section .information{
    left: 4%;
}

}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section, .feature-card, .route-card {
    animation: fadeIn 1s ease-out;
}

.faq-section h2 {
    font-weight: 700;
}

/* Info Cards Section */
.info-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 260px;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.info-card:not(:has(.info-card-bg)){
    background-color: #ddd;
}

.info-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: blur(3px);
}

.info-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 180px;
}
.info-card-content h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--primary-color);
}
.info-card-icon {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.info-text{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    margin-bottom: 0;
    color: white;
}


/* --- Discounts section --- */
/*.discounts .row{
    background-color: var(--gray-color);
}


.discounts .discount-text{
    position: relative;
    color: black;
}


.discounts .discount{
    position: absolute;
    top: -10px;
    right: 10px;
}

.discounts .discount span{
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 10px;
    color: white;
}*/


/* --- Top Bar Styles --- */
.top-bar {
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem 0;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
}
.top-bar-link {
    color: var(--text-color-white);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: color 0.2s;
    font-size: 1.08rem;
}
.top-bar-link:hover {
    opacity: 0.8;
}
.insta-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}
.insta-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}
@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: row;
        gap: 1.2rem;
        justify-content: center;
        align-items: center;
    }
    .top-bar {
        font-size: 0.98rem;
        padding: 0.5rem 0;
    }

    .rotation-mobile-90{
        transform: rotate(90deg);
    }
}

/* --- Modern FAQ Styles --- */
.modern-faq .accordion-item {
    border: none;
    box-shadow: 0 2px 16px rgba(160,15,67,0.3);
    margin-bottom: 18px;
    transition: box-shadow 0.3s;
    border-radius: 5px;
}
.modern-faq .accordion-item.active {
    box-shadow: 0 4px 24px rgba(160,15,67,0.15);
}
.modern-faq .accordion-button {
    font-weight: 600;
    font-size: 1.15rem;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
    border-radius: 5px;
    /* background-color: var(--gray-color) !important; */

}
.modern-faq .accordion-button:not(.collapsed) {
    color: var(--secondary-color);
    border-bottom: 1px #000 dashed;
}
.modern-faq .accordion-body {
    padding: 1.2rem 1.5rem 1.5rem 3.2rem;
    font-size: 1.05rem;
}

.modern-faq .faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.1rem;
    background: none !important;
}
.modern-faq .accordion-button::after {
    display: none;
}
.modern-faq .arrow {
    margin-left: auto;
    transition: transform 0.3s;
}
.modern-faq .accordion-button[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}



.news-item{
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}




/* --- Stats Section Styles --- */
.stats-section {
    background: none;
}
.stat-card {
    background: var(--gray-color);
    border-radius: 8px;
    padding: 2.2rem 2rem 1.5rem 2rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: none;
    transition: box-shadow 0.2s;
    height: 100%;
    color: black;
}
.stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 1px;
    color: var(--primary-color);
}
.stat-label {
    font-size: 1.25rem;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: black;
}
@media (max-width: 768px) {
    .stat-card {
        padding: 1.2rem 1rem 1rem 1rem;
        min-height: 100px;
        align-items: center;
        text-align: center;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .modern-faq .faq-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        font-size: 0.9rem;
    }
    .modern-faq .faq-icon svg {
        width: 16px;
        height: 16px;
    }
    .modern-faq .accordion-button {
        gap: 0.6rem;
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

/* USER STYLES */

.user-discount{
    /* background-color: var(--primary-color); */
    color: white;
}


.user-discount-code{
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    background-color: var(--gray-color);
}



/* SCROLL ANIMATED */

@keyframes scrollAnimateLeft {
    from { 
        opacity: 0; 
        transform: translate3d(-200px, 0, 0); 
    }
    to { 
        opacity: 1;
        transform: none;
    }
}


@keyframes scrollAnimateRight {
    from { opacity: 0; transform: translate3d(200px, 0, 0); }
    to { opacity: 1; transform: none; }
}

.scrolingAnimationLeft{
    animation: none;
    opacity: 0;
}

.activeView > .scrolingAnimationLeft{
    animation: scrollAnimateLeft 2s ease-in-out;
    opacity: 1;
}

.scrolingAnimationRight{
    animation: none;
    opacity: 0;
}

.activeView > .scrolingAnimationRight{
    animation: scrollAnimateRight 2s ease-in-out;
    opacity: 1;
}


@keyframes scaleAnimation{
    from{
        transform: scale(0);
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scaleAnimation{
    animation: none;
    opacity: 0;
    transform: scale(0);
}

.activeView > .scaleAnimation{
    animation: scaleAnimation 2s ease-in-out; 
    opacity: 1; 
    transform: scale(1); 
}