/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    position: relative;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #27ae60;
}

.flash-error {
    background: #e74c3c;
}

.flash-info {
    background: #3498db;
}

.flash-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header Styles - Updated to match reference site */
.header {
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
}

/* Main Navigation - Positioned under title */
.nav {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #4CBB17;
    color: #fff !important;
}

.search-toggle, .mobile-menu-toggle {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.5rem;
}

/* Search Bar */
.search-bar {
    background: #fff;
    padding: 1rem 0;
    display: none;
    margin-top: 120px;
    border-top: 1px solid #e0e0e0;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 1rem;
}

.search-form input:focus {
    border-color: #4CBB17;
}

.search-form button {
    padding: 0.5rem 1rem;
    background: #008000;
    color: #fff !important;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background: #4CBB17;
}

/* Page Header */
.page-header {
    background: #1a1a1a;
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #008000;
    text-align: center;
}

.content-section h3 {
    color: #008000;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Ensure paragraphs in content sections have black text */
.content-section p {
    color: #333;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.col-md-6 {
    flex: 1;
}

.col-md-8 {
    flex: 2;
}

.col-md-4 {
    flex: 1;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

.step h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step p {
    color: #666;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: #2c3e50;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.equipment-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.equipment-icon i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.equipment-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.equipment-item p {
    color: #666;
}

/* Safety Categories */
.safety-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.category-icon i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.category-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-item p {
    color: #666;
}

/* Login Page Styles */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.login-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-form-wrapper h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.login-form-wrapper p {
    margin-bottom: 2rem;
    color: #666;
}

.login-links {
    margin-top: 1.5rem;
    text-align: center;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 1rem;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.login-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.login-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.login-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.login-info i {
    color: #3498db;
    width: 20px;
}

/* Search Results Styles */
.search-results h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.no-results h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.search-suggestions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-tips {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.search-tips h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.search-tips ul {
    list-style: none;
    padding-left: 0;
}

.search-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.search-tips li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.search-again {
    margin-top: 3rem;
    text-align: center;
}

.search-again h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.search-again .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Course Actions */
.course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Values List */
.values-list {
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.values-list i {
    color: #3498db;
    width: 20px;
}

/* Image Placeholder */
.image-placeholder {
    background: #f8f9fa;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.image-placeholder i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Image Container */
.image-container {
    text-align: center;
}

.facility-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.image-caption {
    margin-top: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.location-detail {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* Responsive styles for facility image */
@media (max-width: 768px) {
    .facility-image {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .facility-image {
        max-width: 100%;
    }
    
    .image-caption {
        font-size: 1rem;
    }
    
    .location-detail {
        font-size: 0.9rem;
    }
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.info-box h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-box li:last-child {
    border-bottom: none;
}

/* Hero Section with Background Image */
.hero.hero-image {
    position: relative;
    min-height: 780px;
    background: url('https://defensivedriving.triniwire.com/oc-includes/images/header-image2.png') center center/contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}
.hero-center {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-yellow {
    background: #4CBB17;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 14px 36px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-yellow:hover {
    background: #008000;
    color: #fff;
    transform: translateY(-2px);
}

/* Mission and Awards Section */
.mission-awards {
    position: relative;
    margin-top: -120px;
    z-index: 10;
}

.mission-awards-grid {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

.mission-card, .awards-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    min-width: 320px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 0;
    height: auto;
}

.mission-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    flex: 1;
}



.awards-card {
    background: #000000;
    color: #fff;
    margin-left: 0;
    border-radius: 0 12px 12px 0;
}

.mission-card h2, .awards-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    margin-top: 15px;
}

.awards-card h2 {
    color: #fff;
}

.mission-card p {
    font-style: italic;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    margin: 0 auto;
    max-width: 90%;
    margin-top: 10px;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    padding-left: 25px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Fix for content sections - ensure black text */
.content-section .values-list li {
    color: #333;
}

.values-list li:last-child {
    margin-bottom: 0;
}

.values-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 12px;
    height: 12px;
    background: #ffd600;
    border-radius: 2px;
}

.values-list i {
    display: none;
}

@media (max-width: 900px) {
    .mission-awards-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .mission-card, .awards-card {
        max-width: 100%;
    }
    .mission-awards {
        margin-top: -60px;
    }
    .section {
        padding: 40px 0 40px 0;
    }
    .section-top-gap {
        margin-top: 30px;
    }
}

/* Course Listings */
.course-listing {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.course-header {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.course-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.course-level {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-level.beginner {
    background: #e8f5e8;
    color: #27ae60;
}

.course-level.intermediate {
    background: #fff3cd;
    color: #f39c12;
}

.course-level.advanced {
    background: #f8d7da;
    color: #e74c3c;
}

.course-content {
    padding: 2rem;
}

.course-description h4 {
    margin: 1rem 0 0.5rem 0;
    color: #2c3e50;
}

.course-description ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.course-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.detail-item i {
    color: #3498db;
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CBB17;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Contact Methods */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-method {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.method-icon i {
    font-size: 2rem;
    color: #fff;
}

.contact-method h3 {
    margin-bottom: 1rem;
    color: #008000;
    font-size: 1.3rem;
    font-weight: 600;
}

.method-details {
    margin: 1.5rem 0;
    text-align: left;
}

.method-details p {
    margin-bottom: 0.5rem;
}

/* Location */
.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.location-details h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.directions {
    margin-top: 1.5rem;
}

.direction-item {
    margin-bottom: 1rem;
}

.direction-item h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.map-placeholder {
    background: #f8f9fa;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.map-placeholder i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.service-icon i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-item ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.product-icon i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.product-details {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

/* Facility Grid */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.facility-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.facility-icon i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.facility-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.facility-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.member-photo i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.position {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.certification-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.certification-item i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Stats */
.stats-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    color: #fff;
    text-align: center;
    padding: 60px 0;
    border-radius: 10px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4CBB17;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer .contact-info i,
.footer-section i {
    color: #fff;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #4CBB17;
    color: #fff;
}

.btn-primary:hover {
    background: #008000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: #008000;
    border: 2px solid #008000;
}

.btn-secondary:hover {
    background: #008000;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #008000;
    border: 2px solid #008000;
}

.btn-outline:hover {
    background: #008000;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #008000;
}

.modal h2 {
    color: #008000;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-form {
    margin-top: 1rem;
    margin-bottom: 20px;
}

/* Section Spacing Utility */
.section {
    padding: 40px 0 40px 0;
}
.section-top-gap {
    margin-top: 30px;
}

/* Section Titles */
.section h2, .section h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 18px 0;
    background: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.08);
    letter-spacing: 0.5px;
}

/* Training Courses Grid Fix */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.course-category {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.course-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.course-icon i {
    font-size: 3rem;
    color: #008000;
    margin-bottom: 1rem;
}

.course-category h3 {
    color: #008000;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-category p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-link {
    color: #4CBB17;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.course-link:hover {
    color: #008000;
}

.btn,
.btn-outline,
.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}
.btn-primary {
    background: #3498db;
    color: #fff;
}
.btn-primary:hover {
    background: #217dbb;
}
.btn-secondary {
    background: #e74c3c;
    color: #fff;
}
.btn-secondary:hover {
    background: #c0392b;
}
.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}
.btn-outline:hover {
    background: #3498db;
    color: #fff;
}

/* Portal Section */
.portal-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Certified Section */
.certified-intro {
    color: #008000;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.certified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.certified-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.certified-item:hover {
    transform: translateY(-5px);
}

.certified-icon i {
    font-size: 2.5rem;
    color: #008000;
    margin-bottom: 1rem;
}

.certified-item h3 {
    color: #008000;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Trending Section */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.trending-item {
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.trending-item:hover {
    transform: translateY(-5px);
}

.trending-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #008000;
}

.trending-link {
    color: #4CBB17;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.trending-link:hover {
    color: #008000;
}

/* Driver Rehab Section */
.driver-rehab-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.driver-rehab-content h2 {
    text-align: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    padding: 18px 0;
    background: linear-gradient(90deg, #3498db 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.08);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}
.driver-rehab-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #666;
}

@media (max-width: 900px) {
    .courses-grid, .certified-grid, .trending-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .course-category, .certified-item, .trending-item {
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile menu system - completely rewritten */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: row !important;
        cursor: pointer;
        align-items: center !important;
        gap: 8px !important;
    }

    .mobile-menu-toggle .menu-text {
        display: block !important;
        font-size: 0.9rem;
        font-weight: 500;
        color: #fff;
        margin-right: 8px;
    }

    .mobile-menu-toggle span:not(.menu-text) {
        width: 25px;
        height: 3px;
        background: #fff;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2a2a2a !important;
        padding: 0;
        margin: 0;
        z-index: 1000;
        border-top: 1px solid #444;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    
    /* All main menu items */
    .nav-menu.active > li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #444;
        background: #2a2a2a !important;
    }
    
    .nav-menu.active > li:last-child {
        border-bottom: none;
    }
    
    /* Main menu links */
    .nav-menu.active > li > a {
        color: #ffffff !important;
        padding: 18px 20px !important;
        display: block !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        background: #2a2a2a !important;
        border: none !important;
        text-align: left !important;
        position: relative;
        line-height: 1.2;
        vertical-align: middle;
    }
    
    .nav-menu.active > li > a:hover {
        background: #3a3a3a !important;
        color: #ffffff !important;
    }
    
    /* Dropdown arrow for courses */
    .nav-menu.active > li.has-dropdown > a::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.8rem;
        color: #ffffff;
    }
    
    .nav-menu.active > li.has-dropdown.active > a::after {
        content: '▲';
    }
    
    /* Dropdown menu for courses - HIDDEN by default */
    .nav-menu.active .dropdown-menu {
        display: none !important;
        background: #1a1a1a !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
    }
    
    /* Only show dropdown when courses is active */
    .nav-menu.active .has-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .nav-menu.active .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #333;
        background: #1a1a1a !important;
    }
    
    .nav-menu.active .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu.active .dropdown-menu a {
        color: #cccccc !important;
        padding: 15px 30px !important;
        display: block !important;
        font-size: 1rem !important;
        text-decoration: none !important;
        background: #1a1a1a !important;
        border: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        line-height: 1.2;
    }
    
    .nav-menu.active .dropdown-menu a:hover {
        background: #2a2a2a !important;
        color: #ffffff !important;
    }
    
    /* Fix header title visibility on mobile */
    .logo h1 {
        font-size: 1.2rem;
        display: block;
        visibility: visible;
    }
    

    
    /* Fix banner layout on mobile */
    .section-banner {
        flex-direction: column;
        padding: 20px;
        min-height: auto;
        height: auto;
        overflow: hidden;
    }
    
    /* Increase banner height for homepage to fit all content */
    .hero .section-banner,
    .driver-rehab .section-banner,
    .portal .section-banner,
    .trending .section-banner {
        min-height: 350px;
        height: auto;
        padding: 30px 20px;
    }
    
    .banner-img {
        width: 100%;
        max-width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .banner-content {
        text-align: center;
        width: 100%;
    }
    
    .banner-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .banner-desc {
        font-size: 1rem;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
    
    .hero-content h2,
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Revert hero background to cover on mobile */
    .hero.hero-image {
        background-size: cover !important;
    }
    
    /* Fix hero title visibility on mobile */
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .mission-content h2,
    .awards h2,
    .driver-rehab-content h2,
    .courses h2,
    .portal-content h2,
    .certified h2,
    .trending h2,
    .content-section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .courses-grid,
    .awards-grid,
    .certified-grid,
    .trending-grid,
    .contact-methods-grid,
    .services-grid,
    .products-grid,
    .facility-grid,
    .team-grid,
    .certifications-grid,
    .stats-grid,
    .process-steps,
    .testimonials,
    .equipment-grid,
    .safety-categories {
        grid-template-columns: 1fr;
    }
    
    .row {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .location-container {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .flash-messages {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero,
    .page-header {
        padding: 120px 0 60px;
    }
    
    .hero-content h2,
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .course-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .course-details {
        grid-template-columns: 1fr;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Section Banner with Image and Content */
.section-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #000000;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,128,0,0.08);
    padding: 0 48px;
    min-height: 270px;
    height: 270px;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 1300px;
    box-sizing: border-box;
}
.banner-img {
    width: 320px;
    height: 210px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 56px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
    flex-shrink: 0;
    display: block;
}
.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.banner-title {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
    margin-bottom: 18px;
}
.banner-desc,
.banner-desc[style] {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 18px !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #fff;
}
#courses .banner-desc,
#certified .banner-desc {
        white-space: normal !important;
        overflow: visible !important;
    text-overflow: clip !important;
    }

.banner-inner-content {
    margin-top: 15px;
}

.banner-inner-content p {
    margin: 10px 0;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

/* Responsive Design for Training Courses Section */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .course-category {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .course-category img {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        min-height: 200px !important;
        margin: 0 auto 1rem auto !important;
    }
    
    .course-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-outline {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .course-category {
        padding: 1rem;
    }
    
    .course-category img {
        width: 100% !important;
        max-width: 250px !important;
        height: auto !important;
        min-height: 180px !important;
    }
    
    .course-category h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .btn-outline {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    #courses .banner-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    #courses .banner-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .courses-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .courses-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .course-category {
        padding: 0.8rem;
    }
    
    .course-category img {
        max-width: 220px !important;
        min-height: 160px !important;
    }
    
    .course-category h3 {
        font-size: 1.2rem;
    }
    
    .btn-outline {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
} 

/* Course Cards */
.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 128, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    color: #008000;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.course-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.course-duration, .course-level {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 0.9rem;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-item h3 {
    color: #008000;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.category-card h3 {
    color: #008000;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.category-card ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.category-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CBB17;
    font-weight: bold;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #008000 0%, #4CBB17 100%);
    color: #fff;
    padding: 60px 30px;
    border-radius: 12px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .course-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .course-features {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .course-content {
        padding: 20px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
} 

/* Section Spacing - Reduced for Authorised and Certified, Training Courses */
#certified.section,
#courses.section {
    padding-top: 40px;
}

/* Ensure all text on green backgrounds is white */
.hero h1,
.hero p,
.hero-subtitle,
.hero-title,
.page-header h1,
.page-header p,
.section-banner .banner-title,
.section-banner .banner-desc,
.section-banner .banner-inner-content,
.cta-section h2,
.cta-section p,
.footer h3,
.footer p,
.footer a,
.footer li,
.modal h2 {
    color: #fff !important;
}

/* Ensure dropdown menu text on green background is white */
.dropdown-menu a:hover {
    background: #4CBB17;
    color: #fff !important;
}

/* Ensure search button text is white */
.search-form button {
    color: #fff !important;
}

/* Ensure all button text on green backgrounds is white */
.btn-primary,
.btn-yellow {
    color: #fff !important;
} 

    /* Mobile banner text wrapping - homepage only */
    @media (max-width: 768px) {
        .hero .section-banner,
        .driver-rehab .section-banner,
        .portal .section-banner,
        .trending .section-banner {
            min-height: 400px !important;
            height: auto !important;
            padding: 30px 20px !important;
        }
        
        .hero .banner-title,
        .driver-rehab .banner-title,
        .portal .banner-title,
        .trending .banner-title {
            font-size: 1.6rem !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            hyphens: auto !important;
            line-height: 1.3 !important;
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
            display: block !important;
            margin-bottom: 15px !important;
        }
        
        .hero .banner-desc,
        .driver-rehab .banner-desc,
        .portal .banner-desc,
        .trending .banner-desc {
            font-size: 0.95rem !important;
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
            display: block !important;
            margin-bottom: 15px !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            hyphens: auto !important;
            line-height: 1.4 !important;
        }
        
        .hero .banner-inner-content,
        .driver-rehab .banner-inner-content,
        .portal .banner-inner-content,
        .trending .banner-inner-content {
            margin-top: 15px !important;
        }
        
        .hero .banner-inner-content p,
        .driver-rehab .banner-inner-content p,
        .portal .banner-inner-content p,
        .trending .banner-inner-content p {
            margin: 10px 0 !important;
            font-size: 0.9rem !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            hyphens: auto !important;
            line-height: 1.4 !important;
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
        }
    } 

    /* Mobile responsive fixes and header adjustments */
    @media (max-width: 768px) {
        /* Fix horizontal scroll and content alignment */
        body, html {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .container, .section, .mission-awards, .hero {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
            margin: 0 auto !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }
        
        /* Push View Our Courses button down on mobile */
.hero-center .btn-yellow {
    margin-top: 10px !important;
}
        
        /* Properly reduce green header background height on mobile */
        header {
            min-height: 90px !important;
            height: 90px !important;
            padding: 10px 0 !important;
        }
        
        .header-content {
            min-height: 80px !important;
            height: 80px !important;
            padding: 10px 0 !important;
        }
        
        /* Move menu up slightly */
        .mobile-menu-toggle {
            margin-top: -40px !important;
        }
        
        /* Increase View Our Courses button size on mobile */
        @media (max-width: 768px)
 {
    .btn-yellow {
        margin-top: 20px !important;   
        padding: 10px 25px !important;  /* Larger padding */
        font-size: 1.3rem !important;   /* Larger font */
        font-weight: 700 !important;
    }
}
        
        /* Fix hero background and ensure text visibility */
        .hero {
            min-height: 400px !important;
            height: 70vh !important;
            margin-bottom: 30px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .hero-content {
            width: 100% !important;
            max-width: 100% !important;
            text-align: center !important;
            padding: 20px 15px !important;
            z-index: 2 !important;
            position: relative !important;
        }
        
        .hero h1, .hero p {
            color: white !important;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
            margin: 10px 0 !important;
        }
        
        /* Move hero subtitle text up on mobile without affecting button */
        .hero-subtitle {
            margin-top: -80px !important;
        }
        
        /* Position Our Mission section just under hero image border on mobile */
        .mission-awards {
            margin-top: -70px !important;
            position: relative !important;
            width: 100% !important;
            max-width: 100% !important;
            z-index: 10 !important;
        }
        
        /* Center Our Mission and Awards Received sections on mobile */
        .mission-awards .container {
            padding-left: 15px !important;
            padding-right: 15px !important;
            margin: 0 auto !important;
            text-align: center !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        
        .mission-awards-grid {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 auto !important;
            width: 100% !important;
            padding: 0 !important;
        }
        
        .mission-card {
            margin-left: auto !important;
            margin-right: auto !important;
            width: 100% !important;
            max-width: 100% !important;
            border-top-left-radius: 12px !important;
            border-top-right-radius: 12px !important;
            border-bottom-left-radius: 12px !important;
            border-bottom-right-radius: 12px !important;
        }
        
        .awards-card {
            margin-left: auto !important;
            margin-right: auto !important;
            width: 100% !important;
            max-width: 100% !important;
            border-top-left-radius: 12px !important;
            border-top-right-radius: 12px !important;
            border-bottom-left-radius: 12px !important;
            border-bottom-right-radius: 12px !important;
        }
        
        /* Mobile header title vertical centering */
        .header-content {
            align-items: center !important;
        }
        
        .logo {
            display: flex !important;
            align-items: center !important;
        }
        
        .logo h1 {
            display: flex !important;
            align-items: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        /* Fix vertical scroll issues after Training Courses heading */
.courses, .portal, .certified, .trending {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 auto !important;
    padding: 20px 15px !important;
}

.courses-grid, .certified-grid, .trending-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 auto !important;
}

.course-category, .certified-item, .trending-item {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Fix section spacing */
.section {
    padding: 20px 0 !important;
    margin: 0 !important;
}
    } 

 

 