/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
}

.section {
    padding: 80px 0;
}

/* Navigation */
.navbar-brand img {
    height: 50px;
}

.navbar .nav-link {
    font-weight: 500;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: url('https://via.placeholder.com/1920x1080?text=Driving+School+Banner') no-repeat right center;
    background-size: contain; /* Keep contain as per previous request */ /* Image will be scaled to fit entirely within the container */
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    min-height: 600px; /* Adjust as needed */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
    text-align: left;
}

.hero-text .tag {
    display: inline-block;
    background-color: #ffc107; /* Warning color */
    color: #212529;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    margin-right: 15px;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .primary-btn {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.hero-buttons .primary-btn:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.hero-buttons .secondary-btn {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.hero-buttons .secondary-btn:hover {
    background-color: #fff;
    color: #212529;
}

.hero-image {
    flex: 1;
    text-align: center;
    height: 100%; /* Make hero-image take full height of flex container */
    display: flex; /* Use flex to center image vertically */
    align-items: center; /* Center image vertically */
    justify-content: center; /* Center image horizontally */
}

.hero-image img {
    max-width: 100%;
    height: 100%; /* Make image take full height of its parent */
    width: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure image covers the area, cropping if necessary */
    display: block;
    margin: 0 auto;
}

/* Alignment classes for child image */
.hero-image.text-left {
    text-align: left;
}

.hero-image.text-center {
    text-align: center;
}

.hero-image.text-right {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    .hero-buttons .btn {
        margin-right: 0;
        margin-bottom: 10px;
        display: block;
    }
}

/* Courses Section */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* Features Section */
.feature-box {
    transition: background-color 0.3s ease;
}

.feature-box:hover {
    background-color: #fff;
    border-radius: .25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Footer */
footer a.text-white:hover {
    text-decoration: underline;
}

/* Ensure Login button is always visible and has desired width */
.navbar-nav .nav-item.dropdown {
    display: block !important;
    width: 250px !important; /* Login button width */
}

.navbar-nav .nav-item.dropdown .nav-link.btn {
    width: 100% !important; /* Make the button fill its parent li */
}

/* Login button text color */
.navbar-nav .nav-item.dropdown .nav-link.btn.text-dark {
    color: rgb(255, 136, 0) !important;
}

/* Ensure the ul containing the Login button is always visible */
.navbar-nav:last-child {
    display: flex !important;
}

/* Style for the login dropdown menu */
.navbar-nav .dropdown-menu {
    min-width: 250px; /* Adjust as needed */
    padding: 15px; /* Add some padding */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Add a subtle shadow */
}

.navbar-nav .dropdown-menu .form-label {
    font-weight: bold;
}

.navbar-nav .dropdown-menu .btn-primary {
    background-color: rgb(255, 136, 0); /* Orange color */
    border-color: rgb(255, 136, 0);
}

.navbar-nav .dropdown-menu .btn-primary:hover {
    background-color: rgb(220, 110, 0); /* Slightly darker orange for hover */
    border-color: rgb(220, 110, 0);
}

/* Style for WhatsApp Enquiry button */
.navbar-nav .nav-item .btn.text-white {
    background-color: #25D366; /* WhatsApp green */
    border-color: #25D366;
    color: #fff !important; /* Ensure text is white */
    width: 100% !important;
}

.navbar-nav .nav-item .btn.text-white:hover {
    background-color: #1DA851; /* Darker green on hover */
    border-color: #1DA851;
}