/* Custom Theme for YatraMate ASP.NET */
:root {
    --dark-blue: #0A1F44;
    --teal: #008080;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --accent-teal: #00a8a8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-blue);
    background-color: var(--light-gray);
}

/* Navbar */
.navbar {
    background-color: var(--dark-blue) !important;
    padding: 1rem 2rem;
}

.navbar-brand {
    font-weight: bold;
    color: var(--teal) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--white) !important;
    margin: 0 10px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--teal) !important;
}

/* Hero Section Enhancement */
.hero-section {
    background: linear-gradient(rgba(10, 31, 68, 0.7), rgba(10, 31, 68, 0.7)), url('https://images.unsplash.com/photo-1436491865332-7a61a109c0f3?q=80&w=2000') no-repeat center center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: -50px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search Box Customization */
.search-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.search-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.search-nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.search-nav a i {
    font-size: 1.2rem;
}

.search-nav a.active {
    color: var(--teal);
    background: rgba(0, 128, 128, 0.1);
    border-radius: 8px;
}

/* Buttons */
.btn-primary {
    background-color: var(--teal) !important;
    border-color: var(--teal) !important;
}

.btn-primary:hover {
    background-color: var(--accent-teal) !important;
    border-color: var(--accent-teal) !important;
}

/* Offers Section */
.offer-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-img {
    height: 180px;
    object-fit: cover;
}

/* Features Section */
.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--light-gray);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    margin: 0 auto 15px;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon {
    background: var(--teal);
    color: white;
    transform: rotateY(180deg);
}

/* Footer Colors */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 60px 0 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--teal);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.text-teal {
    color: var(--teal);
}

.bg-dark-blue {
    background-color: var(--dark-blue);
}

/* Anchor-based class-box (Train results page) */
a.class-box {
    color: inherit;
    cursor: pointer;
}

a.class-box:hover {
    border-color: var(--teal);
    background: #f0f9f9;
    color: inherit;
}

/* jQuery UI Autocomplete styling */
.ui-autocomplete {
    z-index: 9999 !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-menu-item-wrapper {
    padding: 8px 12px !important;
    font-size: 0.9rem;
}

.ui-menu-item-wrapper.ui-state-active {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    color: white;
}