/* ============================================
   🕌 BLUE TO GREEN OVERRIDE - FINAL CLEANUP
   ============================================ */

/* Override all remaining blue colors to Islamic green */
*[style*="#1E3A8A"] {
    color: #1B5E20 !important;
}

*[style*="#4169E1"] {
    color: #1B7D3A !important;
}

*[style*="#87CEEB"] {
    color: #4CAF50 !important;
}

/* Text colors */
.text-muted-dark,
h1, h2, h3, h4, h5, h6,
p,
.section-title,
.card-title,
.card-text,
.form-label,
.dropdown-item,
.glass-dropdown-item,
.nav-link,
.text-light,
.text-white,
.alert,
.table,
.table th,
.table td,
.navbar-dark .navbar-nav .nav-link {
    color: #1B5E20 !important;
}

/* Hover states */
.nav-link:hover,
.glass-navbar-light .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover,
.dropdown-item:hover,
.dropdown-item:focus,
.glass-btn:hover {
    color: #1B7D3A !important;
}

/* Active states */
.nav-link.active,
.glass-navbar-light .nav-link.active,
.glass-dropdown-item.active,
.glass-dropdown-item.active i {
    color: #1B7D3A !important;
}

/* Dropdown arrows */
.dropdown-toggle::after,
.navbar .dropdown-toggle::after,
.glass-navbar-light .dropdown-toggle::after {
    border-top-color: #1B5E20 !important;
}

/* Form controls */
.form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
    color: #1B5E20 !important;
}

.form-control:focus {
    border-color: #1B7D3A !important;
    box-shadow: 0 0 0 0.2rem rgba(27, 125, 58, 0.25) !important;
    color: #1B5E20 !important;
}

/* Buttons */
.glass-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1B5E20 !important;
    border: 2px solid rgba(76, 175, 80, 0.3) !important;
}

/* Background overrides */
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(27, 125, 58, 0.1) !important;
}

.glass-btn:hover {
    background: rgba(27, 125, 58, 0.1) !important;
}

.glass-dropdown-item.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(27, 125, 58, 0.2)) !important;
}

.glass-navbar-light .nav-link:hover {
    background: rgba(27, 125, 58, 0.1) !important;
}

.glass-navbar-light .nav-link.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(27, 125, 58, 0.3)) !important;
}

/* Gradient overrides */
*[style*="linear-gradient(135deg, #87CEEB"] {
    background: linear-gradient(135deg, #4CAF50, #1B7D3A) !important;
}

*[style*="linear-gradient(135deg, #4169E1"] {
    background: linear-gradient(135deg, #1B7D3A, #4CAF50) !important;
}

*[style*="linear-gradient(90deg, transparent, #87CEEB"] {
    background: linear-gradient(90deg, transparent, #4CAF50, #1B7D3A, #4CAF50, transparent) !important;
}

/* Border overrides */
*[style*="border-left: 4px solid #4169E1"] {
    border-left: 4px solid #1B7D3A !important;
}

*[style*="border-left: 4px solid #87CEEB"] {
    border-left: 4px solid #4CAF50 !important;
}

/* Icon colors */
i[style*="color: #4169E1"],
i[style*="color: #87CEEB"],
i[style*="color: #1E3A8A"] {
    color: #1B7D3A !important;
}

/* Specific overrides for inline styles */
[style*="color: #1E3A8A"] {
    color: #1B5E20 !important;
}

[style*="color: #4169E1"] {
    color: #1B7D3A !important;
}

[style*="color: #87CEEB"] {
    color: #4CAF50 !important;
}

/* Background color overrides */
[style*="background: linear-gradient(135deg, #87CEEB 0%, #4169E1 100%)"] {
    background: linear-gradient(135deg, #4CAF50 0%, #1B7D3A 100%) !important;
}

[style*="background: linear-gradient(135deg, #4169E1 0%, #87CEEB 100%)"] {
    background: linear-gradient(135deg, #1B7D3A 0%, #4CAF50 100%) !important;
}

/* RGBA overrides */
[style*="rgba(135, 206, 235"] {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

[style*="rgba(65, 105, 225"] {
    background: rgba(27, 125, 58, 0.1) !important;
    border-color: rgba(27, 125, 58, 0.3) !important;
    box-shadow: 0 8px 25px rgba(27, 125, 58, 0.1) !important;
}

/* Final cleanup for any missed blue colors */
.text-primary {
    color: #1B7D3A !important;
}

.bg-primary {
    background: linear-gradient(135deg, #1B7D3A 0%, #4CAF50 100%) !important;
}

.border-primary {
    border-color: #1B7D3A !important;
}

/* Ensure all text is readable */
body, html {
    color: #1B5E20 !important;
}

/* Override any remaining blue gradients */
.hero-section,
.activities-section,
.certificates-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%) !important;
}