/* custom.css - MiNigh Custom Styles */

/* Increase tooltip text size on mobile */
@media (max-width: 575.98px) {
    .tippy-box {
        font-size: 18px;
    }
}

body {
    font-family: "Raleway", sans-serif;
    background-image: linear-gradient(135deg, #B1B1B1 0%, #E5E5E5 100%);
    /* Shiny silver gradient background color */
    position: relative;
}

/* background-color: #94ACC9; */

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/bg_image.png") no-repeat center center fixed;
    background-size: cover;
    opacity: 0.6;
    /* Adjust for 50% opacity */
    z-index: -1;
    /* Ensures it stays behind the content */
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page-container .container-fluid {
    flex: 1;
    /* Ensures that content takes up available space */
}

.minigh-bg {
    background-color: #bcdbb3;
}

/* --- Modern Navbar Design --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 6px 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
}

.navbar-brand span {
    font-family: 'Amaranth', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #FFD700 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) saturate(100%) invert(84%) sepia(35%) saturate(1052%) hue-rotate(357deg) brightness(102%) contrast(105%);
    /* Gold color */
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    /* Slightly smaller font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Reduced tracking */
    padding: 8px 10px !important;
    /* Reduced horizontal padding from 18px to 10px */
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 1px;
    /* Reduced margin */
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.text-warning {
    color: #FFD700 !important;
    font-weight: 700;
}

/* Down Arrow for Submenus */
.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.4em;
    vertical-align: middle;
    content: "";
    border-top: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-bottom: 0;
    border-left: 0.35em solid transparent;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.navbar .dropdown-toggle.show::after {
    transform: rotate(-180deg);
}

/* Dropdown Menu Enhancement */
.navbar .dropdown-menu {
    background: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 12px !important;
    margin-top: 15px !important;
    border-top: 4px solid #FFD700 !important;
    animation: dropdownFade 0.3s ease forwards;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.25s ease;
    margin-bottom: 4px;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    transform: translateX(8px);
}

.navbar .dropdown-item.active {
    background: rgba(FF, D7, 00, 0.15) !important;
    color: #FFD700 !important;
}

/* Special styling for "Get Started" item */
#get-started {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000 !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 8px 18px !important;
    /* Reduced padding */
    margin-left: 8px;
    /* Reduced from 15px */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

#get-started:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFF 0%, #FFD700 100%);
}

#get-started::after {
    display: none;
}

/* Mobile Hiding (Preserved as requested to maintain custom logic) */
@media (max-width: 991px) {
    .navbar {
        display: none !important;
    }
}

/* Ensure the main content doesn't overlap with the navbar */
.content {
    margin-top: 80px;
    /* Adjusted for thinner navbar */
}

/* Remove top margin on mobile since navbar is hidden */
@media (max-width: 991px) {
    .content {
        margin-top: 0;
    }
}

/* Ensure Toastr is fully opaque always */
#toast-container>.toast {
    opacity: 1 !important;
    /* Full opacity */
}

/* Default Toastr hover behavior (optional, keep as is) */
#toast-container>.toast:hover {
    opacity: 1 !important;
    /* Ensure it doesn't change on hover */
}

/* Ensure the Toastr progress bar is fully visible */
.toast-progress {
    opacity: 1 !important;
    background-color: orange !important;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: #ffffff;
    padding: 60px 0 40px;
    margin-top: auto;
    border-top: 4px solid #FFD700;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    animation: shimmer 8s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Go to Top Footer Section */
.footer-top-utility {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.footer-go-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-go-top-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-go-top-btn:hover {
    color: #FFD700;
}

.footer-go-top-btn:hover i {
    transform: translateY(-5px);
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-brand img {
    margin-bottom: 15px;
}

.footer-brand strong {
    color: #FFD700;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    letter-spacing: 1px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 40px;
    max-width: 400px;
    margin: 0 auto;
}

.footer-link {
    color: #e0e0e0;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.footer-section-title {
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
}

.footer-powered {
    font-size: 0.95rem;
    color: #888;
}

.footer-powered .powered-logo-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    vertical-align: middle;
}

.footer-powered .powered-logo-link:hover {
    transform: scale(1.1) rotate(2deg);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modern-footer {
        display: none !important;
    }

    .footer-links-grid {
        justify-content: center;
        margin: 0 auto 30px;
    }

    .footer-socials {
        justify-content: center;
        margin: 20px auto;
    }

    .footer-powered {
        text-align: center !important;
        margin-top: 20px;
    }
}

/* Modern Modal Styles */
.modal-content {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-body {
    padding: 2.5rem !important;
}

.form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    color: white !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
}

.btn-warning:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1) !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
    color: #7ce4ff !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
}

/* Custom Language Selector */
.custom-language-selector .dropdown-toggle {
    text-decoration: none;
    color: #FFD700 !important;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(255, 215, 0, 0.1) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
}

.custom-language-selector .dropdown-toggle:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
    color: #FFD700;
}

.custom-language-selector .dropdown-toggle::after {
    display: none;
    /* Hide default arrow */
}

.bg-dark-glass {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.custom-language-selector .dropdown-item {
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
}

.custom-language-selector .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
}

.custom-language-selector .dropdown-item.active {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #FFD700 !important;
}

/* Hide Google Translate container but keep it functional */
#google_translate_element {
    position: fixed;
    top: 0;
    right: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Style the Google Translate select */
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 12px !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    padding: 4px !important;
    border-radius: 4px !important;
    background: #fff !important;
    border: 1px solid #FFD700 !important;
}

/* Hide Google Translate top bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Ensure body doesn't get pushed down */
body.translated-ltr,
body.translated-rtl {
    top: 0 !important;
    margin-top: 0 !important;
}

/* Hide the Google Translate iframe but keep it functional */
.skiptranslate {
    display: none !important;
}

/* Keep the actual translate functionality working */
.goog-te-gadget,
.goog-te-combo {
    opacity: 0 !important;
    pointer-events: auto !important;
}

/* --- Professional Mission & Vision Section (Redesigned) --- */
#mission-vision {
    padding: 60px 20px;
    max-width: 1200px;
}

#about.content-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
}

#about.content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#about.content-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    border-radius: 10px;
}

/* Compact Feature Card Design */
.feature-card {
    background: #ffffff !important;
    padding: 2.5rem 2rem !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-align: left;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(255, 215, 0, 0.15) !important;
}

/* Compact Icon Design */
.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0 !important;
    color: #FFD700 !important;
    font-size: 1.8rem !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000 !important;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

/* Compact Typography */
.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #about.content-section {
        padding: 60px 0 !important;
    }

    .section-heading {
        font-size: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem !important;
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem !important;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

/* --- Social Inequality Section (Professional Redesign) --- */
.bg-light.content-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
}

.bg-light.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.bg-light .section-heading {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 1rem !important;
    line-height: 1.3;
}

.bg-light .lead {
    font-size: 1.15rem;
    color: #666;
    font-weight: 500;
    font-style: italic;
}

/* Feature List Items */
.bg-light h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bg-light h4 i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bg-light .mb-4 p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-left: 35px;
}

/* Enhanced Bar Chart */
.bar-chart {
    width: 100%;
    height: 400px;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.chart-bar {
    position: absolute;
    bottom: 50px;
    width: 60px;
    background: linear-gradient(to top, #FFD700 0%, #FFA500 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 -5px 15px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.chart-bar:hover {
    filter: brightness(1.1);
    transform: translateY(-5px);
}

.chart-bar:nth-child(even) {
    background: linear-gradient(to top, #1E3A8A 0%, #2a4cad 100%);
    box-shadow: 0 -5px 15px rgba(30, 58, 138, 0.2);
}

.chart-label {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

/* Responsive Chart */
@media (max-width: 768px) {
    .bg-light.content-section {
        padding: 60px 0 !important;
    }

    .bg-light .section-heading {
        font-size: 1.8rem;
    }

    .bar-chart {
        height: 300px;
        overflow-x: auto;
        padding: 20px 10px;
    }

    .chart-bar {
        width: 45px;
    }

    .chart-label {
        font-size: 0.65rem;
        width: 80px;
    }

    .bg-light .mb-4 p {
        margin-left: 0;
    }
}
