/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; /* Light background for content areas */
    color: #333; /* Dark text for readability */
}

/* Header Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffeb3b !important; /* Yellow brand name */
}

.navbar-dark {
    background-color: #001f3f !important; /* Navy background for navbar */
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important; /* White text for navbar links */
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffeb3b !important; /* Yellow text for active navbar link */
    font-weight: bold;
}

.btn-primary {
    background-color: #001f3f !important; /* Navy button background */
    border-color: #001f3f !important;
    color: #ffffff !important; /* White text on buttons */
}

.btn-primary:hover {
    background-color: #003366 !important; /* Slightly lighter navy on hover */
    border-color: #003366 !important;
}

.btn-outline-primary {
    color: #001f3f !important;
    border-color: #001f3f !important;
}

.btn-outline-primary:hover {
    background-color: #001f3f !important;
    color: #ffffff !important; /* White text on hover */
}

/* Hero Section */
.hero {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffeb3b; /* Yellow heading for contrast */
}

.hero p {
    color: #ffffff; /* White paragraph text */
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #ffffff; /* White background */
}

.section-title {
    color: #001f3f; /* Navy section titles */
    position: relative;
    margin-bottom: 40px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffeb3b; /* Yellow underline */
}

.feature-card {
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    transition: transform 0.3s;
    background-color: #ffffff; /* White card background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #001f3f; /* Navy icon color */
}

.feature-card h3 {
    color: #001f3f; /* Navy heading */
}

.feature-card p {
    color: #333; /* Dark text for readability */
}

/* Courses Section */
.courses-section {
    background-color: #f8f9fa; /* Light gray background */
    padding: 60px 0;
}

.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    background-color: #ffffff; /* White card background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.course-img {
    height: 200px;
    object-fit: cover;
}

.course-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffeb3b; /* Yellow category tag */
    color: #001f3f; /* Navy text */
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.course-card h3 {
    color: #001f3f; /* Navy heading */
}

.course-card p {
    color: #333; /* Dark text */
}

.course-meta {
    color: #666; /* Medium gray text */
}

/* Specializations Section */
.specializations-section {
    background-color: #001f3f; /* Navy background */
    padding: 60px 0;
}

.specializations-section .section-title {
    color: #ffffff; /* White section title */
}

.specializations-section .section-title:after {
    background-color: #ffeb3b; /* Yellow underline */
}

.specialization-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    background-color: #ffffff; /* White card background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.specialization-img {
    height: 200px;
    object-fit: cover;
}

.specialization-title {
    background-color: #001f3f; /* Navy background */
    color: #ffeb3b; /* Yellow text */
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

.specialization-card p {
    color: #333; /* Dark text */
}

/* Projects Section */
.projects-section {
    background-color: #f8f9fa; /* Light gray background */
    padding: 60px 0;
}

.project-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    background-color: #ffffff; /* White card background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.project-img {
    height: 200px;
    object-fit: cover;
}

.project-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffeb3b; /* Yellow category tag */
    color: #001f3f; /* Navy text */
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-card h3 {
    color: #001f3f; /* Navy heading */
}

.project-card p {
    color: #333; /* Dark text */
}

/* Footer Styles */
footer {
    background-color: #001f3f; /* Navy background */
    padding: 40px 0 20px;
}

footer h5 {
    color: #ffeb3b; /* Yellow headings */
    font-weight: bold;
    margin-bottom: 20px;
}

footer p, footer span, footer i {
    color: #ffffff !important; /* White text */
}

footer a {
    color: #ffffff !important; /* White links */
    text-decoration: none;
}

footer a:hover {
    color: #ffeb3b !important; /* Yellow on hover */
    text-decoration: underline;
}

footer .social-icons a {
    font-size: 1.2rem;
    color: #ffffff !important; /* White icons */
    margin-right: 15px;
}

footer .social-icons a:hover {
    color: #ffeb3b !important; /* Yellow on hover */
}

footer hr {
    background-color: rgba(255, 255, 255, 0.2); /* Light divider */
}

/* Language Selector */
.language-selector .btn {
    font-size: 0.8rem;
}

.btn-outline-light {
    border-color: #ffffff !important; /* White border */
    color: #ffffff !important; /* White text */
}

.btn-outline-light:hover, .btn-outline-light.active {
    background-color: #ffffff !important; /* White background */
    color: #001f3f !important; /* Navy text */
}

/* Login/Register Forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: #ffffff; /* White background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    color: #001f3f; /* Navy heading */
    margin-bottom: 30px;
}

.auth-form label {
    color: #333; /* Dark text */
}

/* File Upload */
.upload-area {
    border: 2px dashed #001f3f; /* Navy border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #ffffff; /* White background */
}

.upload-area:hover {
    border-color: #ffeb3b; /* Yellow border on hover */
}

.upload-icon {
    font-size: 3rem;
    color: #001f3f; /* Navy icon */
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* RTL Support */
[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Form controls */
.form-control {
    background-color: #ffffff; /* White background */
    border-color: #ced4da; /* Light gray border */
}

.form-control:focus {
    background-color: #ffffff; /* White background */
    border-color: #001f3f; /* Navy border */
    box-shadow: 0 0 0 0.25rem rgba(0, 31, 63, 0.25);
}

/* Search bar */
.search-bar {
    background-color: #ffffff; /* White background */
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    border: none;
    box-shadow: none;
}

.search-bar button {
    background-color: #001f3f; /* Navy button */
    color: #ffffff; /* White icon */
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Category filters */
.category-filter {
    background-color: #ffffff; /* White background */
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-filter select {
    border: none;
    box-shadow: none;
    color: #001f3f; /* Navy text */
}

/* Page headers */
.page-header {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.page-header h1 {
    color: #ffeb3b; /* Yellow heading */
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
}

.breadcrumb-item a {
    color: #001f3f; /* Navy links */
}

.breadcrumb-item.active {
    color: #666; /* Medium gray text */
}

/* Pagination */
.pagination .page-link {
    color: #001f3f; /* Navy text */
}

.pagination .page-item.active .page-link {
    background-color: #001f3f; /* Navy background */
    border-color: #001f3f;
    color: #ffffff; /* White text */
}

/* Alerts */
.alert-primary {
    background-color: rgba(0, 31, 63, 0.1);
    border-color: rgba(0, 31, 63, 0.2);
    color: #001f3f; /* Navy text */
}

/* Badges */
.badge-primary {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
}

/* Tooltips */
.tooltip-inner {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
}

/* Dropdown menus */
.dropdown-menu {
    background-color: #ffffff; /* White background */
    border-color: rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333; /* Dark text */
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
}

/* Course details page */
.course-details {
    background-color: #ffffff; /* White background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.course-details h1 {
    color: #001f3f; /* Navy heading */
}

.course-details .course-meta {
    color: #666; /* Medium gray text */
}

.course-details .course-description {
    color: #333; /* Dark text */
}

/* About page */
.about-section {
    background-color: #ffffff; /* White background */
    padding: 60px 0;
}

.about-section h2 {
    color: #001f3f; /* Navy heading */
}

.about-section p {
    color: #333; /* Dark text */
}

.team-member {
    background-color: #ffffff; /* White background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    color: #001f3f; /* Navy heading */
}

.team-member p {
    color: #666; /* Medium gray text */
}

/* Call to action sections */
.cta-section {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.cta-section h2 {
    color: #ffeb3b; /* Yellow heading */
}

.cta-section .btn-light {
    background-color: #ffffff; /* White button */
    color: #001f3f; /* Navy text */
}

.cta-section .btn-outline-light {
    border-color: #ffffff; /* White border */
    color: #ffffff; /* White text */
}

.cta-section .btn-outline-light:hover {
    background-color: #ffffff; /* White background */
    color: #001f3f; /* Navy text */
}

/* Testimonials */
.testimonial {
    background-color: #ffffff; /* White background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    color: #333; /* Dark text */
    font-style: italic;
}

.testimonial .author {
    color: #001f3f; /* Navy text */
    font-weight: bold;
}

/* Stats section */
.stats-section {
    background-color: #f8f9fa; /* Light gray background */
    padding: 60px 0;
}

.stats-item h3 {
    color: #001f3f; /* Navy heading */
    font-size: 2.5rem;
    font-weight: bold;
}

.stats-item p {
    color: #666; /* Medium gray text */
}

/* FAQ section */
.faq-item {
    background-color: #ffffff; /* White background */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #001f3f; /* Navy heading */
}

.faq-item p {
    color: #333; /* Dark text */
}

/* Contact form */
.contact-form {
    background-color: #ffffff; /* White background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #001f3f; /* Navy heading */
}

.contact-info {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
    border-radius: 10px;
    padding: 30px;
}

.contact-info h2 {
    color: #ffeb3b; /* Yellow heading */
}

.contact-info p, .contact-info a {
    color: #ffffff; /* White text */
}

/* Progress bars */
.progress {
    background-color: #e9ecef; /* Light gray background */
}

.progress-bar {
    background-color: #001f3f; /* Navy background */
}

/* Tabs */
.nav-tabs .nav-link {
    color: #001f3f; /* Navy text */
}

.nav-tabs .nav-link.active {
    color: #001f3f; /* Navy text */
    border-bottom: 2px solid #001f3f; /* Navy border */
}

.tab-content {
    background-color: #ffffff; /* White background */
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

/* Timeline */
.timeline-item {
    border-left: 2px solid #001f3f; /* Navy border */
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffeb3b; /* Yellow dot */
    border: 2px solid #001f3f; /* Navy border */
}

.timeline-item h3 {
    color: #001f3f; /* Navy heading */
}

.timeline-item p {
    color: #333; /* Dark text */
}

/* Pricing tables */
.pricing-card {
    background-color: #ffffff; /* White background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.pricing-card.featured {
    border: 2px solid #ffeb3b; /* Yellow border */
}

.pricing-card h3 {
    color: #001f3f; /* Navy heading */
}

.pricing-card .price {
    color: #001f3f; /* Navy text */
    font-size: 2.5rem;
    font-weight: bold;
}

.pricing-card ul li {
    color: #333; /* Dark text */
}

/* Carousel indicators */
.carousel-indicators li {
    background-color: rgba(0, 31, 63, 0.5); /* Semi-transparent navy */
}

.carousel-indicators li.active {
    background-color: #001f3f; /* Navy */
}

/* Carousel controls */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #001f3f; /* Navy background */
    border-radius: 50%;
    padding: 10px;
}

/* Modals */
.modal-header {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
}

.modal-title {
    color: #ffffff; /* White text */
}

.modal-header .close {
    color: #ffffff; /* White text */
}

/* Toasts */
.toast-header {
    background-color: #001f3f; /* Navy background */
    color: #ffffff; /* White text */
}

/* Spinners */
.spinner-border, .spinner-grow {
    color: #001f3f; /* Navy color */
}

/* Utilities */
.bg-primary {
    background-color: #001f3f !important; /* Navy background */
}

.bg-secondary {
    background-color: #ffeb3b !important; /* Yellow background */
}

.text-primary {
    color: #001f3f !important; /* Navy text */
}

.text-secondary {
    color: #ffeb3b !important; /* Yellow text */
}

.border-primary {
    border-color: #001f3f !important; /* Navy border */
}

.border-secondary {
    border-color: #ffeb3b !important; /* Yellow border */
}

/* Custom utility classes */
.bg-navy {
    background-color: #001f3f !important;
}

.bg-yellow {
    background-color: #ffeb3b !important;
}

.text-navy {
    color: #001f3f !important;
}

.text-yellow {
    color: #ffeb3b !important;
}

.border-navy {
    border-color: #001f3f !important;
}

.border-yellow {
    border-color: #ffeb3b !important;
}
