/* ===================================================
   COMPREHENSIVE DARK MODE FIXES - VIDYANEX
   Overrides inline styles and fixes visibility issues
   =================================================== */

/* ---- COURSE CARDS (courses.html) - Override inline background:white ---- */
body.dark-mode .course-detail-card,
body.dark-mode .course-detail-card[style],
body.dark-mode div.course-detail-card {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

body.dark-mode .course-content-new,
body.dark-mode .course-content-new[style],
body.dark-mode div.course-content-new {
    background-color: #1f2937 !important;
}

/* Course card headings */
body.dark-mode .course-content-new h2,
body.dark-mode .course-content-new h2[style] {
    color: #f9fafb !important;
}

/* Text spans inside course cards */
body.dark-mode .course-content-new span,
body.dark-mode .course-content-new div > span {
    color: #d1d5db !important;
}

/* Rating text divs */
body.dark-mode .course-content-new div[style*="color: #718096"] {
    color: #9ca3af !important;
}

/* Gold stars */
body.dark-mode .course-content-new .fa-star,
body.dark-mode .course-content-new .fa-star-half-alt {
    color: #fbbf24 !important;
}
body.dark-mode .course-content-new .far.fa-star {
    color: #6b7280 !important;
}

/* Calendar icon */
body.dark-mode .course-content-new .far.fa-calendar-alt {
    color: #a78bfa !important;
}

/* Batch date badge */
body.dark-mode .course-content-new div[style*="background-color: #e50914"] {
    background-color: #991b1b !important;
    color: #fff !important;
}

/* "Total Fees" italic */
body.dark-mode .course-content-new span[style*="font-style: italic"] {
    color: #9ca3af !important;
}

/* Fee price green */
body.dark-mode .course-content-new span[style*="color: #16a34a"] {
    color: #4ade80 !important;
}

/* ---- COURSES PAGE: header, search, filter ---- */
body.dark-mode .courses-header h1 {
    color: #f9fafb !important;
}
body.dark-mode .section-subtitle {
    color: #9ca3af !important;
}
body.dark-mode #courseSearch,
body.dark-mode .search-box input {
    background: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}
body.dark-mode .search-box input::placeholder {
    color: #6b7280 !important;
}
body.dark-mode .search-icon {
    color: #9ca3af !important;
}
body.dark-mode .filter-btn {
    background: #1f2937 !important;
    color: #d1d5db !important;
    border-color: #4b5563 !important;
}
body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: #7c3aed !important;
    color: #fff !important;
    border-color: #7c3aed !important;
}

/* ---- COURSE DETAIL PAGE CONTENT BOXES ---- */
body.dark-mode .content-box,
body.dark-mode .sidebar-box {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}
body.dark-mode .content-box h2,
body.dark-mode .content-box h3,
body.dark-mode .sidebar-box h2,
body.dark-mode .sidebar-box h3 {
    color: #f9fafb !important;
}
body.dark-mode .content-box .pink-header {
    color: #f472b6 !important;
}
body.dark-mode .content-box p,
body.dark-mode .content-box li,
body.dark-mode .sidebar-box p,
body.dark-mode .sidebar-box li {
    color: #d1d5db !important;
}

/* Tech grid items */
body.dark-mode .cd-tech-item {
    background: #111827 !important;
    border-color: #374151 !important;
}
body.dark-mode .cd-tech-item span {
    color: #d1d5db !important;
}

/* Tech name tags */
body.dark-mode .tech-name-tag {
    background: #4c1d95 !important;
    color: #ddd6fe !important;
    border-color: #6d28d9 !important;
}

/* Job role table */
body.dark-mode .job-table th {
    background: #111827 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}
body.dark-mode .job-table td {
    color: #d1d5db !important;
    border-color: #374151 !important;
}

/* Cert badges */
body.dark-mode .cert-badge {
    background: #111827 !important;
    border-color: #374151 !important;
}
body.dark-mode .cert-badge strong,
body.dark-mode .cert-badge span {
    color: #f9fafb !important;
}

/* Mentor cards */
body.dark-mode .mentor-endorsement-card {
    background: #111827 !important;
    border-color: #374151 !important;
    color: #e5e7eb !important;
}

/* Enquiry form */
body.dark-mode .hero-enquiry {
    background: rgba(15, 23, 42, 0.97) !important;
    border-color: #374151 !important;
}
body.dark-mode .hero-enquiry h3,
body.dark-mode .hero-enquiry p {
    color: #f9fafb !important;
}
body.dark-mode .form-control {
    background: #1f2937 !important;
    color: #f9fafb !important;
    border-color: #374151 !important;
}

/* FAQ on course pages */
body.dark-mode .faq-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
}
body.dark-mode .faq-question,
body.dark-mode .faq-answer p {
    color: #e5e7eb !important;
}

/* ---- BACK BUTTON - Proper styling ---- */
.back-button-container {
    padding: 16px 0 0 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    color: #374151;
    background: #f3f4f6;
    transition: all 0.25s ease;
    cursor: pointer;
}
.back-btn i {
    font-size: 0.85rem;
}
.back-btn:hover {
    background: #7c3aed;
    color: #fff !important;
    border-color: #7c3aed;
    transform: translateX(-2px);
}
body.dark-mode .back-btn {
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
    background: #1f2937 !important;
}
body.dark-mode .back-btn:hover {
    background: #7c3aed !important;
    color: #fff !important;
    border-color: #7c3aed !important;
}

/* ---- ALUMNI / HIRING PARTNERS LOGOS ---- */
body.dark-mode .scrolling-logos-track img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.85 !important;
}
body.dark-mode .hiring-partners-section {
    background: #0f172a !important;
}
body.dark-mode .section-header-center h2 {
    color: #f9fafb !important;
}

/* ---- GENERAL DARK MODE TEXT ---- */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f9fafb;
}
body.dark-mode p {
    color: #d1d5db;
}

/* ---- ABOUT PAGE DARK MODE TEXT VISIBILITY ---- */
body.dark-mode.about_page_wrapper {
    background: #0f172a;
    color: #f9fafb;
    --text-main: #f9fafb;
    --text-muted: #d1d5db;
    --bg-white: #1e293b;
    --bg-secondary: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body.dark-mode .feature-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .challenge-item {
    background: #1e293b;
    border-color: rgba(255,255,255,0.05);
}

body.dark-mode .vision-box {
    background: #1e293b;
}

body.dark-mode .section-header h2,
body.dark-mode .feature-card h3 {
    color: #f9fafb !important;
}

/* ---- LIGHTBULB FA ICON ---- */
.theme-toggle__lightbulb,
svg.theme-toggle__lightbulb {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover .theme-toggle__lightbulb {
    transform: scale(1.15);
}
body.dark-mode .theme-toggle__lightbulb,
body.dark-mode svg.theme-toggle__lightbulb {
    color: #fde68a !important;
    filter: drop-shadow(0 0 6px rgba(253,230,138,0.6));
}

/* ---- RESTORED CHATBOT & FLOATING BUTTONS ---- */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 550px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 10002;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.chatbot-window.active {
    display: flex;
}
.chatbot-header {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chatbot-input {
    display: flex;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
}
.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
}
.chatbot-input button {
    margin-left: 8px;
    padding: 10px 20px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

body.dark-mode .chatbot-window {
    background: #1f2937;
    border-color: #374151;
    color: white;
}
body.dark-mode .chatbot-input {
    border-color: #374151;
    background: #111827;
}
body.dark-mode .chatbot-input input {
    background: #1f2937;
    color: white;
    border-color: #374151;
}

.floating-btn.whatsapp {
    background-color: #25d366;
}
.floating-btn.phone {
    background-color: #007bff;
}
.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
}
.floating-btn i, .floating-btn svg {
    color: white !important;
    fill: white !important;
}
