/* AL DIYAR Training - Visual Fixes for Text Readability and Display */

/* Fix all text contrast issues */
.page-header {
    color: #ffffff !important;
}

.page-title {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.page-subtitle {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}

.page-breadcrumb {
    color: #ffffff !important;
    opacity: 1 !important;
}

.gradient-text {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Ensure all content is visible (no hidden scroll-reveal) */
.scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Fix courses header text visibility */
.courses-info h2,
.courses-info p,
#categoryTitle,
#coursesCount {
    color: #1e293b !important;
    opacity: 1 !important;
    position: relative;
    z-index: 100 !important;
    background: white;
    padding: 5px 0;
}

/* Disable any problematic overlays or bubbles */
.page-header::before,
.page-header::after {
    display: none !important;
}

/* Fix course card title truncation */
.course-title {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    min-height: auto !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}

.course-title a {
    color: #1e293b !important;
    text-decoration: none;
}

.course-title a:hover {
    color: #0f1f44 !important;
    text-decoration: underline;
}

/* Fix course description truncation */
.course-description {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Ensure all section titles are readable */
.section-title {
    color: #1e293b !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.section-subtitle {
    color: #475569 !important;
    opacity: 1 !important;
}

/* Fix any floating elements (scroll to top, etc.) */
.scroll-to-top,
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0f1f44, #1c2f5d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 31, 68, 0.3);
    z-index: 1000;
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.6);
}

.scroll-to-top:hover,
.floating-action:hover {
    background: linear-gradient(135deg, #132a57, #21386d);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(15, 31, 68, 0.4);
}

/* Fix hero text contrast */
.hero-title {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

.hero-subtitle {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2) !important;
}

/* Fix footer text */
.footer {
    color: #e5e7eb !important;
}

.footer-description {
    color: #d1d5db !important;
    opacity: 1 !important;
}

/* Ensure all links are readable */
a {
    opacity: 1 !important;
}

/* Remove any transparent fills that cause invisibility */
* {
    -webkit-text-fill-color: initial !important;
}

.gradient-text {
    -webkit-text-fill-color: #ffffff !important;
}

/* Fix contact info visibility */
.contact-info {
    color: #ffffff !important;
    opacity: 1 !important;
}

.contact-info span {
    color: #ffffff !important;
}

/* Fix top bar text */
.top-bar {
    color: #ffffff !important;
    background: #0f1f44 !important;
}

.top-bar span {
    color: #ffffff !important;
    opacity: 1 !important;
}

.contact-info span {
    color: #ffffff !important;
}

.phone, .mobile, .email {
    color: #ffffff !important;
}

/* Fix navigation text - Make it visible */
.header {
    background: white !important;
}

.nav-link {
    color: #1e293b !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

.nav-link:hover {
    color: #0f1f44 !important;
}

.nav-link.active {
    color: #d4af37 !important;
    border-bottom: 2px solid #d4af37;
}

.nav-menu {
    background: transparent !important;
}

.nav-item a {
    color: #1e293b !important;
}

.main-nav {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #0f1f44, #1c2f5d) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
}

/* Fix mega menu to fit screen */
.mega-menu {
    max-width: 1200px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    padding: 30px !important;
}

.mega-menu-content {
    max-width: 100% !important;
}

/* Ensure dropdown menus fit */
.dropdown-menu {
    max-width: 300px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Fix course card headers */
.course-header,
.course-category {
    background: linear-gradient(135deg, #0f1f44, #1c2f5d) !important;
    color: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.course-badge {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Fix all button text */
.btn,
.btn-primary,
.btn-secondary {
    opacity: 1 !important;
}

/* Fix info items */
.info-item,
.meta-item {
    color: #1e293b !important;
}

.info-value {
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* Remove any bubble-like elements that might block content */
.bubble,
.floating-bubble,
.decoration-bubble {
    display: none !important;
}

/* Ensure course grid has proper spacing */
.courses-grid {
    padding: 20px 0 !important;
}

/* Fix modern course cards */
.modern-course-card {
    background: white !important;
    position: relative;
    z-index: 1;
}

.course-body {
    position: relative;
    z-index: 2;
}

/* Disable any problematic animations */
.course-card,
.modern-course-card {
    animation: none !important;
}

/* Fix breadcrumb positioning */
.page-breadcrumb {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-bottom: 1.5rem;
}

/* Ensure proper text sizing in all containers */
h1, h2, h3, h4, h5, h6 {
    color: inherit;
    opacity: 1;
}

/* Fix any overlay issues */
.hero-overlay,
.subject-overlay {
    z-index: 0 !important;
    pointer-events: none !important;
}

.hero-content,
.page-header-content {
    position: relative;
    z-index: 10 !important;
}

/* Mobile responsive text fixes */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem !important;
    }
    
    .page-subtitle {
        font-size: 1rem !important;
    }
    
    .course-title {
        font-size: 1rem !important;
    }
}

