/* ===== Custom Styles for Safarbus Website ===== */

/* RTL Fixes */
body {
    text-align: right;
}

/* Hover Effects */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

.hover-text-white:hover {
    color: white !important;
    transition: all 0.3s ease;
}

/* Bus Ticket Card Hover */
.tickets-list .card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animation for Success Page */
@keyframes checkmark {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fa-check-circle {
    animation: checkmark 1s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bus-layout {
        max-width: 300px;
    }

    .bus-seat {
        width: 35px;
        height: 40px;
        font-size: 12px;
    }
}

/* Button Hover Transition */
.btn {
    transition: all 0.3s ease;
}

/* Price Highlight */
.text-primary.fw-bold {
    text-shadow: 0 0 1px rgba(13, 110, 253, 0.2);
}

/* Card Transitions */
.card {
    transition: all 0.3s ease;
}

/* Hero Section Gradient Background (Optional) */
.bg-primary.py-5 {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Disable Focus Ring on Seat Selection */
.bus-seat:focus {
    outline: none;
}

/* Persian/Arabic Number Styling */
.price,
.date,
.time {
    font-feature-settings: "tnum";
}

/* Custom Badge Style */
.badge.bg-warning {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navigation Active Link */
.nav-link.active {
    background-color: #FFC107 !important;
    color: #0c2e60 !important;
    font-weight: 600;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Special styling for header nav links */
.gradient-header .nav-link.active {
    background-color: #FFC107 !important;
    color: #0c2e60 !important;
    font-weight: 600;
    border-radius: 4px;
}

/* Hover effect for nav links */
.nav-link:hover:not(.active) {
    background-color: rgba(255, 193, 7, 0.2);
}

/* Hover effect for header nav links */
.gradient-header .nav-link:hover:not(.active) {
    background-color: rgba(255, 193, 7, 0.2);
    color: white !important;
    border-radius: 4px;
}

/* Footer Links Hover */
footer a:hover {
    padding-right: 5px;
    transition: all 0.3s ease;
}

/* Company Logo Circle */
.company-logo {
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Input Focus Styles */
input:focus::placeholder {
    color: transparent;
    transition: all 0.3s ease;
}

/* Custom Wave Effect for Divider */
.wave-divider {
    height: 70px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Custom Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

html,
body {
    height: 100%;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* Fix for page margins */
.container,
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {

    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Fix for page layout */
.offcanvas {
    z-index: 1045;
}

.modal {
    z-index: 1050;
}

/* Animated Gradient Background for Header */
.gradient-header {
    background: linear-gradient(-45deg, #2e51bb, #184e8e, #112a7b, #051b5f);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 50, 0.25);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hover Effects for Navigation */
.nav-hover-effect {
    position: relative;
    transition: all 0.3s ease;
}

.nav-hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.nav-hover-effect:hover::after,
.nav-hover-effect.active::after {
    width: 100%;
}

.nav-hover-effect:hover {
    transform: translateY(-2px);
}

/* Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-animated:hover::before {
    width: 100%;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Animation */
.float-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Search Form Styling */
.search-form {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Custom Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
}

/* Stats Cards */
.stat-card {
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.stat-card:hover {
    border-bottom-color: #0d6efd;
    transform: translateY(-5px);
}

/* Logo Animation */
.logo-animated span {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-animated:hover span:first-child {
    transform: translateX(-3px) rotate(-5deg);
}

.logo-animated:hover span:last-child {
    transform: translateX(3px) rotate(5deg);
}

/* Slideshow background for nav section */
.slideshow-bg {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
}

.slideshow-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.slideshow-bg .container {
    position: relative;
    z-index: 2;
}

.slideshow-bg .slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow-bg .slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeInOut 25s infinite;
}

.slideshow-bg .slideshow .slide:nth-child(1) {
    background-image: url('../img/bus1.jpeg');
    animation-delay: 0s;
}

.slideshow-bg .slideshow .slide:nth-child(2) {
    background-image: url('../img/bus2.jpeg');
    animation-delay: 5s;
}

.slideshow-bg .slideshow .slide:nth-child(3) {
    background-image: url('../img/bus3.jpeg');
    animation-delay: 10s;
}

.slideshow-bg .slideshow .slide:nth-child(4) {
    background-image: url('../img/bus4.jpeg');
    animation-delay: 15s;
}

.slideshow-bg .slideshow .slide:nth-child(5) {
    background-image: url('../img/bus5.jpeg');
    animation-delay: 20s;
}

@keyframes fadeInOut {

    0%,
    20%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    4%,
    16% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Make sure search form is visible */
#searchForm {
    position: relative;
    z-index: 10;
}

/* Simple date input styling */
.datepicker {
    height: 50px;
    cursor: pointer;
    padding-left: 40px;
    border-radius: 10px;
}

/* Calendar icon styling */
.calendar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
}

/* Gradient header */
.gradient-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: #fff;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu */
.offcanvas {
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease-in-out;
}

.offcanvas-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 1rem;
}

.offcanvas-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.offcanvas-body {
    padding: 1rem;
    overflow-y: auto;
}

.mobile-nav-item {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
}

.mobile-nav-item i {
    width: 24px;
    text-align: center;
    margin-left: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.mobile-submenu {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0.5rem 0;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-submenu .list-group-item {
    border: none;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.3s ease;
}

.mobile-submenu .list-group-item i {
    color: #0d6efd;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.transition-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Mobile menu active states */
.mobile-nav-item.active {
    background-color: #FFC107 !important;
    color: #0c2e60 !important;
    font-weight: 600;
}

.mobile-submenu .list-group-item.active {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #0c2e60 !important;
    font-weight: 600;
    border-right: 3px solid #FFC107;
}

/* Mobile menu hover effects */
.mobile-nav-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transform: translateX(-5px);
}

.mobile-submenu .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
    transform: translateX(-5px);
}

/* Ensure collapse elements are visible */
.collapse.show {
    display: block !important;
}

/* Fix transition for collapse elements */
.collapse {
    transition: all 0.3s ease-in-out !important;
}

/* Ensure submenu items remain visible */
.mobile-submenu .list-group-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile menu buttons */
.mobile-menu-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-menu-buttons .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Mobile contact info */
.mobile-contact-info {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

.mobile-contact-info .small {
    font-size: 0.85rem;
    color: #6c757d;
}

.mobile-contact-info a {
    color: #0d6efd;
    text-decoration: none;
}

.mobile-contact-info i {
    color: #0d6efd;
    width: 20px;
    text-align: center;
}

/* Mobile social links */
.mobile-social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .offcanvas {
        max-width: 100%;
    }

    .mobile-nav-item {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .mobile-submenu .list-group-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .mobile-menu-buttons .btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Slideshow background */
.slideshow-bg {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 80px 0;
    border-bottom: 5px solid rgba(13, 110, 253, 0.1);
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 3s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 0.3;
    transform: scale(1);
}

.slide:nth-child(1) {
    background-image: url('../img/bus1.jpeg');
}

.slide:nth-child(2) {
    background-image: url('../img/bus2.jpeg');
}

.slide:nth-child(3) {
    background-image: url('../img/bus3.jpeg');
}

.slide:nth-child(4) {
    background-image: url('../img/bus4.jpeg');
}

.slide:nth-child(5) {
    background-image: url('../img/bus5.jpeg');
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0d6efd;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.5);
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

.hero-feature-item {
    padding: 10px 0;
    transition: transform 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateX(-5px);
}

.search-form {
    border-top: 5px solid #0d6efd;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Animation for buttons */
.btn-animated {
    transition: transform 0.3s ease;
}

.btn-animated:hover {
    transform: translateY(-3px);
}

/* Logo animation */
.logo-animated {
    transition: transform 0.3s ease;
}

.logo-animated:hover {
    transform: scale(1.05);
}

/* Navigation hover effect */
.nav-hover-effect {
    position: relative;
}

.nav-hover-effect::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffc107;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-hover-effect:hover::after,
.nav-hover-effect.active::after {
    width: 100%;
    left: 0;
}

/* Navigation hover color */
.nav-link:hover {
    color: #ffc107 !important;
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    padding: 0.5rem 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0c2e60;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #0c2e60;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Dropdown button animation */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.show.dropdown .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Sub Dropdown Menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    right: 100%;
    margin-top: -0.5rem;
    margin-right: 0.5rem;
    border-radius: 12px;
}

.dropdown-submenu:hover>.dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.dropdown-submenu>.dropdown-item:after {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: auto;
    transition: all 0.3s ease;
}

.dropdown-submenu:hover>.dropdown-item:after {
    transform: translateX(-5px);
}

/* Mobile menu accordion styling */
#ticketsCollapse,
#guideCollapse {
    margin-bottom: 10px;
}

.mobile-nav-item .fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-nav-item[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Hover card effect */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Float animation for icons */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Partner logo styles */
.partner-logo {
    transition: transform 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Footer link hover effect */
.hover-opacity-100 {
    transition: opacity 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Testimonial styling */
.testimonial {
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

/* Search form styling */
.search-form {
    border-top: 5px solid #0d6efd;
}

/* Payment icons */
.payment-icon {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer with background image */
.footer-with-image {
    position: relative;
    background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stats section with background image */
.stats-section {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    background-image: url('../img/bus3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    padding: 80px 0;
    margin: 40px 0;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.counter-box {
    padding: 30px 15px;
    margin: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.counter-box i {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Gradient footer */
.gradient-footer {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 70px 0 40px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact bar styling */
.top-contact-bar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
}

.top-contact-bar a:hover {
    color: #ffc107 !important;
}

/* Partners section styling */
.partners-section {
    position: relative;
    background-color: #f8f9fa;
}

/* Improved spacing and padding */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 992px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Add more spacing to accordion items */
.accordion-item {
    margin-bottom: 15px !important;
}

.accordion-button {
    padding: 15px 20px;
}

.accordion-body {
    padding: 20px;
}

/* Add more spacing to cards and sections */
.card,
.bg-white,
.bg-light {
    padding: 25px;
    border-radius: 15px !important;
}

.rounded-4 {
    border-radius: 15px !important;
}

/* Improved footer spacing */
footer ul li {
    margin-bottom: 12px !important;
}

.footer-links a {
    padding: 5px 0;
    display: inline-block;
}

/* Improved spacing for buttons */
.btn {
    padding: 0.5rem 1.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-sm {
    padding: 0.25rem 1rem;
}

/* Add better padding around the slideshow */
.slideshow-bg {
    padding: 100px 0;
}

/* More spacious forms */
.form-control,
.form-select {
    padding: 12px 15px;
    height: auto;
    margin-bottom: 10px;
}

/* Add space around video thumbnails */
.video-thumbnail {
    margin-bottom: 15px;
}

/* Better spacing for header elements */
.gradient-header {
    padding: 15px 0;
}

.nav-item {
    margin: 0 8px;
}

/* Mobile menu improvements */
.offcanvas-body {
    padding: 20px;
}

.mobile-nav-item {
    padding: 12px 15px;
    margin-bottom: 8px;
}

/* Stats section improvements */
.stats-section {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    background-image: url('../img/bus3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    padding: 80px 0;
    margin: 40px 0;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.counter-box {
    padding: 30px 15px;
    margin: 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.counter-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Improvements for search form */
#searchForm {
    padding: 30px;
    margin-bottom: 20px;
}

/* Improved partner logos */
.partner-logo {
    padding: 20px;
    margin: 10px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .counter-box,
    .card,
    .bg-white,
    .bg-light {
        padding: 20px;
    }

    .slideshow-bg {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}

/* Additional spacing between sections */
section+section {
    margin-top: 20px;
}

/* Video testimonial and FAQ section improvements */
.video-thumbnail {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 8px;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.accordion-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

/* Form improvements */
.form-label {
    margin-bottom: 10px;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

/* Button animations improvement */
.btn-animated {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animated:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-animated:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Header and Navigation improvements */
.top-contact-bar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
}

.gradient-header {
    padding: 15px 0;
    margin-bottom: 0;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

/* Footer improvements */
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 15px;
}

/* Improved search form container */
.search-form {
    padding: 30px !important;
    margin: 20px 10px;
}

/* Improved hero spacing */
.hero-content {
    padding: 20px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-text {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.hero-feature-item {
    margin-bottom: 15px;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        padding: 30px;
    }
}

/* Travel Guide Styles */
.travel-guide .badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.travel-guide h5 {
    color: #333;
    transition: all 0.3s ease;
}

.travel-guide ul li {
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.travel-guide ul li:last-child {
    border-bottom: none;
}

.travel-guide ul li:hover {
    transform: translateX(-5px);
}

.travel-guide ul li:hover i {
    transform: scale(1.2);
}

.travel-guide .badge.bg-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd;
}

.travel-guide .badge.bg-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754;
}

.travel-guide .badge.bg-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107;
}

/* Online Booking Advantages Styles */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-light {
    background-color: rgba(13, 202, 240, 0.1);
}

.advantage-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.advantage-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(-5px);
}

.advantage-item:hover .icon-circle {
    transform: scale(1.1);
}

/* Top Routes Styles */
.top-route-item {
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.top-route-item:last-child {
    border-bottom: none;
}

.top-route-item:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.route-cities h5 {
    font-size: 1.1rem;
}

.top-route-item .badge {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-route-item:hover .btn {
    background-color: #0d6efd;
    color: white;
}

/* Routes Section Styles */
.routes-section {
    background-color: #2d3339;
    background-image: url('../img/bus4.jpeg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    padding: 80px 0;
    margin-bottom: 0;
}

.routes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 35, 43, 0.9);
    z-index: 1;
}

.routes-section .container {
    position: relative;
    z-index: 2;
}

.title-separator {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #42a5f5, #0d6efd, #42a5f5);
    margin: 15px auto 40px;
    position: relative;
    animation: separator-pulse 2s infinite;
}

@keyframes separator-pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.routes-column {
    padding: 25px 15px;
    margin-bottom: 30px;
}

.route-column-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.route-links {
    display: flex;
    flex-direction: column;
}

.route-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    text-align: right;
    font-size: 0.95rem;
}

.route-link:hover {
    color: white;
    transform: translateX(-8px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    padding-left: 5px;
}

.route-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.route-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .routes-column {
        padding: 15px;
        margin-bottom: 20px;
    }

    .route-column-title {
        font-size: 1.2rem;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .route-links {
        padding-right: 10px;
    }

    .route-link {
        padding: 7px 0;
        font-size: 0.9rem;
    }

    .title-separator {
        width: 60px;
        margin: 10px auto 30px;
    }
}

/* Routes Footer Connector */
.routes-footer-connector {
    height: 5px;
    background: linear-gradient(to right, #42a5f5, #0d6efd, #0a58ca);
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

/* Footer fixes after routes section */
.gradient-footer {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 70px 0 40px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile App Section Styling */
.mobile-app-section {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    margin-top: 0;
    border-top: 5px solid #e9ecef;
}

.mobile-app-section img {
    transition: all 0.5s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mobile-app-section img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mobile-app-section .btn {
    transition: all 0.3s ease;
}

.mobile-app-section .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bus-seat {
    width: 40px;
    height: 50px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.bus-seat.available {
    background-color: white;
    color: #333;
}

.bus-seat.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.bus-seat.unavailable {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.5;
}

.bus-layout {
    max-width: 360px;
    margin: 0 auto;
}

.bus-front {
    height: 40px;
    background-color: #dee2e6;
    border-radius: 20px 20px 0 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bus-aisle {
    width: 20px;
}

.driver-seat {
    width: 50px;
    height: 50px;
    background-color: #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* استایل‌های اختصاصی صفحه استعلام تکت */
.page-header {
    background: linear-gradient(135deg, rgba(0, 32, 96, 0.9) 0%, rgba(0, 32, 96, 0.8) 100%), url('img/bus-bg-3.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0 50px;
    position: relative;
}

.inquiry-section {
    padding: 50px 0;
}

.inquiry-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.inquiry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.inquiry-card-header {
    padding: 20px;
    background: linear-gradient(to right, #0c2e60, #144b8e);
    color: white;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.inquiry-card-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

.inquiry-card-body {
    padding: 30px;
}

.inquiry-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.inquiry-form .form-control,
.inquiry-form .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
    border-color: #0c2e60;
    box-shadow: 0 0 0 0.25rem rgba(12, 46, 96, 0.25);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-right: 40px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0c2e60;
}

.inquiry-btn {
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.inquiry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 46, 96, 0.3);
}

.ticket-result {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 20px;
}

.ticket-result-heading {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ticket-info-item {
    display: flex;
    margin-bottom: 10px;
}

.ticket-info-label {
    font-weight: 600;
    min-width: 120px;
    color: #555;
}

.ticket-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-used {
    background-color: #cff4fc;
    color: #055160;
}

.status-canceled {
    background-color: #f8d7da;
    color: #842029;
}

.ticket-action-btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 10px;
}

.faq-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background-color: white;
}

.faq-header {
    padding: 15px 20px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background-color: #f1f3f9;
}

.faq-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.faq-header .faq-icon {
    color: #0c2e60;
    transition: all 0.3s ease;
}

.faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content-inner {
    padding: 0 0 20px;
    color: #555;
}

.faq-item.active .faq-header {
    background-color: #f1f3f9;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 500px;
}

/* Mobile Menu Styling */
.mobile-submenu {
    transition: all 0.3s ease;
}

.transition-icon {
    transition: transform 0.3s ease;
}

.list-group-item[aria-expanded="true"] .transition-icon {
    transform: rotate(180deg);
}

.mobile-nav-item {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.mobile-nav-item i {
    transition: all 0.3s ease;
}

.mobile-nav-item:hover i {
    transform: translateX(-3px);
}

/* Mobile menu active items */
.mobile-nav-item.active {
    background-color: #FFC107 !important;
    color: #0c2e60 !important;
    font-weight: 600;
}

.mobile-nav-item.active i {
    color: #0c2e60 !important;
}

.mobile-submenu .list-group-item.active {
    background-color: rgba(255, 193, 7, 0.3) !important;
    color: #0c2e60 !important;
    font-weight: 600;
    border-right: 3px solid #FFC107;
}

.mobile-submenu .list-group-item.active i {
    color: #0c2e60 !important;
}

.mobile-nav-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Welcome Popup Styles */
.welcome-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.welcome-popup-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-badge i {
    font-size: 1rem;
}

.welcome-popup-content {
    padding: 30px;
    text-align: center;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.welcome-popup-content h3 {
    color: #0c2e60;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-popup-content p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.welcome-features {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #0c2e60;
}

.welcome-feature:last-child {
    margin-bottom: 0;
}

.welcome-feature i {
    color: #0d6efd;
    font-size: 1.2rem;
}

.welcome-popup .btn-close {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.welcome-popup .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.welcome-popup .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.welcome-popup .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

/* Animation for the popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.fade .modal-dialog {
    animation: popupFadeIn 0.3s ease-out;
}

/* Responsive Styles for Index Page */

/* Hero Section Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-text {
        font-size: 1rem;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .search-form {
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-feature-item {
        justify-content: center;
    }

    .search-form {
        padding: 1.5rem !important;
    }
}

/* Stats Section Responsive */
@media (max-width: 768px) {
    .counter-box {
        margin-bottom: 1rem;
    }

    .counter-value {
        font-size: 1.8rem;
    }

    .million-text {
        font-size: 1rem;
    }
}

/* Partners Section Responsive */
@media (max-width: 768px) {
    .partner-logo {
        margin-bottom: 1rem;
    }

    .partner-overlay h6 {
        font-size: 0.9rem;
    }
}

/* Features Section Responsive */
@media (max-width: 992px) {
    .advantage-item {
        margin-bottom: 1.5rem;
    }

    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .advantage-content h5 {
        font-size: 1.1rem;
    }

    .advantage-content p {
        font-size: 0.9rem;
    }
}

/* Routes Section Responsive */
@media (max-width: 768px) {
    .routes-column {
        margin-bottom: 2rem;
    }

    .route-column-title {
        font-size: 1.2rem;
    }

    .route-link {
        font-size: 0.9rem;
    }
}

/* Mobile App Section Responsive */
@media (max-width: 992px) {
    .mobile-app-section img {
        margin-bottom: 2rem;
    }

    .mobile-app-section h2 {
        font-size: 1.8rem;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-card {
        margin-bottom: 2rem;
    }

    .footer-card-title {
        font-size: 1.2rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .payment-methods {
        justify-content: center;
    }
}

/* General Container Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Button Responsive */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Form Controls Responsive */
@media (max-width: 768px) {

    .form-control,
    .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

/* Card Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}

/* Section Spacing Responsive */
@media (max-width: 768px) {
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Image Responsive */
@media (max-width: 768px) {
    .img-fluid {
        margin-bottom: 1rem;
    }
}

/* Text Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.9rem;
    }
}

/* Grid System Responsive */
@media (max-width: 768px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Welcome Popup Responsive */
@media (max-width: 576px) {
    .welcome-popup-content {
        padding: 20px;
    }

    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .welcome-popup-content h3 {
        font-size: 1.4rem;
    }

    .welcome-feature {
        font-size: 0.9rem;
    }
}

/* Clean Navigation Menu */
.navbar {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.navbar-brand {
    font-weight: 600;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
}

.nav-link:hover {
    color: white !important;
}

.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.dropdown-item.active {
    background-color: #0d6efd;
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .nav-link {
        color: #333 !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #0d6efd !important;
        background-color: #f8f9fa;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }
}