/* --- External Fonts (Inter) --- */
@import url('https://fonts.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------- */
/* --- DARK/LIGHT MODE VARIABLES AND DEFINITIONS --- */
/* ---------------------------------------------------- */

:root {
    /* Light Mode Colors (Defaults) */
    --bg-primary: #ffffff; /* Main content background (courses-container, etc) */
    --bg-secondary: #f8f9fa; /* Footer and subtle backgrounds */
    --text-color-primary: #000000; /* Dark text for light areas */
    --text-color-light: #ffffff; /* White text for hero/navbar/about */
    --card-box-bg: rgba(128, 0, 0, 0.649); /* Red box background */
    --border-color-default: #dbeafe;
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Body gradient fallback for Light Mode */
    --body-bg-gradient-start: #f0f4f7;
    --body-bg-gradient-end: #e2e8f0;
    --body-bg-style: linear-gradient(150deg, #990101 -10%, #0346ff91 100%);
    --body-animation: none;
}

.dark-mode {
    /* Dark Mode Overrides */
    --bg-primary: #1e293b; /* Dark Blue-Gray for containers */
    --bg-secondary: #0f172a; /* Deepest blue-black for footer/subtle areas */
    --text-color-primary: #e5e7eb; /* Light text for dark areas */
    --text-color-light: #ffffff; /* Remains white for high contrast headers */
    --card-box-bg: rgba(200, 40, 60, 0.7); /* Darker, slightly bolder red for contrast */
    --border-color-default: #374151;
    --box-shadow-color: rgba(0, 0, 0, 0.4);

    /* Original animated gradient for Dark Mode aesthetic */
    --body-bg-gradient-start: #025b8f;
    --body-bg-gradient-end: #8d1601;
    --body-bg-style: #1e293b;
    --body-animation: gradient-animation 5s ease infinite;
}

/* Base style for all elements in dark mode to handle inherited colors */
.dark-mode * {
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

/* Keyframes for the animated background */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------------------------------------------------- */
/* --- ID SELECTORS --- */
/* ---------------------------------------------------- */

/* --- Chat Launcher Button --- */
#chat-launcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#chat-launcher button {
    background: linear-gradient(to right, #960B33, #36B1C7);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

#chat-launcher button:hover {
    transform: scale(1.05);
}

/* --- Dark Mode Toggle Switch (Added) --- */
#theme-toggle {
    /* Hide the default checkbox */
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 70px;
    height: 35px;
    background: #1e293b;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    transition: background-color 0.5s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    margin-right: 15px; /* Spacing in navbar */
}

/* Icons inside the switch */
.theme-toggle-label i {
    font-size: 1.25rem;
    z-index: 1;
    transition: all 0.5s ease;
}

.theme-toggle-label .fa-sun {
    color: #f7d04d; /* Sun color */
}

.theme-toggle-label .fa-moon {
    color: #a78bfa; /* Moon color */
}

/* The sliding circle (ball) */
.theme-toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 29px;
    height: 29px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.5s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* When the checkbox is checked (Dark Mode is ON) */
#theme-toggle:checked + .theme-toggle-label {
    background: #374151; /* Lighter background for the track in Dark Mode */
}

#theme-toggle:checked + .theme-toggle-label::after {
    /* Move the slider to the right */
    transform: translateX(35px); 
}


/* ---------------------------------------------------- */
/* --- ANCHOR SCROLLING FIXES --- */
/* ---------------------------------------------------- */

/* FIX: Targets the courses ID to offset the scroll position,
   ensuring the section title is visible below the fixed navbar. */
#courses::before {
    content: "";
    display: block;
    height: 200px; /* Must match or exceed navbar height */
    margin-top: -100px; /* Negative margin to pull the anchor up */
    visibility: hidden;
    pointer-events: none;
}

/* Generic target fix for fixed navbar */
:target::before {
    content: "";
    display: block;
    height: 90px; /* Adjust to match navbar height + a little extra */
    margin-top: -90px; /* Negate the height */
}

/* ---------------------------------------------------- */
/* --- GENERAL ELEMENTS (BODY, HTML) --- */
/* ---------------------------------------------------- */

/* --- General Styles & Body Animation (Now using variables) --- */
body {
    /* Animated Gradient Background is now controlled by CSS variables */
    background: var(--body-bg-style);
    background-size: 400% 400%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: var(--body-animation);

    font-family: "Inter", sans-serif;
    padding-top: 100px; /* Space for fixed navbar */
    min-height: 100vh; /* Ensure body covers full viewport height */
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

/* ---------------------------------------------------- */
/* --- A-Z SELECTORS --- */
/* ---------------------------------------------------- */

/* --- About Section (Flexbox Layout) --- */
.about-image-column {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    justify-items: center;
    align-items: center;
    padding-top: 20px;
}

.about-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--box-shadow-color); /* Updated shadow */
    transition: transform 0.3s ease-in-out;
}

.about-img:hover {
    transform: scale(1.05);
}

.about-section {
    /* This strong, fixed background color remains for both modes for high contrast with body */
    padding: 50px 0;
    background: linear-gradient(150deg, #990101 -10%, #0346ff91 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-bottom: 50px;
}

.about-section .btn-primary {
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block; /* Ensure button styling works */
}

.about-section .btn-primary:hover {
    background-color: #0056b3;
}

.about-section .container.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;

    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: none;
    border-radius: 20px;
    padding: 30px;
    color: var(--text-color-light); /* Used variable */
    box-sizing: border-box;
    letter-spacing: normal;
    font-size: 1rem;
    height: auto;
}

.about-section h2 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color-light); /* Used variable */
    padding: 2px 5px;
    text-align: center;
    font-size: 2.5rem;
}

.about-section p {
    color: var(--text-color-light); /* Used variable */
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-text-column {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.btn-apply {
    /* Margin adjusted from 80% (which is likely too much) to a fixed value, assuming this button should be near the center of the hero */
    margin-top: 50px;
    background: #8d1601;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-apply:hover {
    background: #025b8f;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* --- Login/Profile/Dashboard Styles --- */
.card {
    color: var(--text-color-light); /* Used variable */
}

.card-box, .dashboard-box, .card-love-you {
    border-radius: 20px;
    background-color: var(--card-box-bg); /* Used variable */
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.card-text {
    color: var(--text-color-primary); /* Used variable */
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

/* --- Course Card Styles --- */
.course-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    transform: scale(1);
    overflow: hidden;
    text-align: center;
    z-index: 1;
}

/* Background Patterns container (adds subtle texture) */
.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px -5px var(--box-shadow-color), 0 8px 10px -6px var(--box-shadow-color); /* Used variable */
    cursor: pointer;
}

/* --- Blue Card: Hospitality --- */
.course-card.blue {
    background-color: var(--bg-primary); /* Use primary BG variable */
    border-color: var(--border-color-default); /* Used variable */
    box-shadow: 0 5px 0 0 #3b82f6;
}
.course-card.blue:hover {
    box-shadow: 0 10px 0 0 #1d4ed8;
}
.course-card.blue .card-icon { color: #1d4ed8; }
.course-card.blue .card-title { color: #1d4ed8; }
.course-card.blue::after {
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--border-color-default) 10px, var(--border-color-default) 11px);
}

/* --- Green Card: Business --- */
.course-card.green {
    background-color: var(--bg-primary); /* Use primary BG variable */
    border-color: var(--border-color-default); /* Used variable */
    box-shadow: 0 5px 0 0 #22c55e;
}
.course-card.green:hover {
    box-shadow: 0 10px 0 0 #166534;
}
.course-card.green .card-icon { color: #166534; }
.course-card.green .card-title { color: #166534; }
.course-card.green::after {
    background: repeating-linear-gradient(0deg, transparent, transparent 10px, var(--border-color-default) 10px, var(--border-color-default) 11px);
}

/* --- Purple Card: IT --- */
.course-card.purple {
    background-color: var(--bg-primary); /* Use primary BG variable */
    border-color: var(--border-color-default); /* Used variable */
    box-shadow: 0 5px 0 0 #a855f7;
}
.course-card.purple:hover {
    box-shadow: 0 10px 0 0 #7e22ce;
}
.course-card.purple .card-icon { color: #6b21a8; }
.course-card.purple .card-title { color: #6b21a8; }
.course-card.purple::after {
    background: repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--border-color-default) 10px, var(--border-color-default) 11px);
}

.course-content {
    text-align: center;
    margin-bottom: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

.courses-container {
    background-color: var(--bg-primary); /* Used variable */
    box-shadow: 0 20px 25px -5px var(--box-shadow-color), 0 8px 10px -6px var(--box-shadow-color); /* Used variable */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 1.5rem;
}

.dashboard-box {
    text-align: left; /* Dashboard usually contains lists/tables, so setting text-align to left here */
    padding: 20px;
}

/* Dots Navigation */
.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.dot.active {
    background-color: #025b8f;
    transform: scale(1.25);
    border-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: var(--text-color-primary); /* Changed to primary text color for better contrast in dropdown menu */
    border-radius: 8px;
    padding: 8px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-light); /* Highlight text on hover */
}

.dropdown-menu {
    background-color: var(--card-box-bg); /* Used variable for a consistent dark/red background */
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--box-shadow-color); /* Used variable */
    padding: 5px;
}

/* --- Floating Contact Button Styles (Mobile Compatibility Update) --- */
/* Default (Desktop/Larger Screens) - TOP-LEFT position for high visibility */
.floating-contact-btn {
    /* Fixed position relative to the viewport */
    position: fixed;

    /* Positioned 100px from the top (to clear the navbar area) and 20px from the left */
    top: 100px;
    left: 20px;
    right: auto; /* Ensure 'right' is not set to auto when 'left' is set */
    bottom: auto; /* Ensure 'bottom' is not set when 'top' is set */


    /* Ensure it is above other content */
    z-index: 1050;

    /* Styling for aesthetics */
    padding: 12px 20px;
    border-radius: 30px; /* Highly rounded pill shape */
    background-color: #007bff; /* Primary blue for attention */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Prevent text wrap */
}

.floating-contact-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.floating-contact-btn:hover {
    background-color: black;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.footer {
    background-color: var(--bg-secondary); /* Used variable */
    color: var(--text-color-primary); /* Used variable */
    padding: 20px 0;
    text-align: center;
}

.form-control {
    background-color: transparent;
    color: var(--text-color-primary); /* Used variable */
    border-color: var(--border-color-default); /* Used variable */
}

/* --- Hero Section & Slideshow Styles --- */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light); /* Used variable */
    overflow: hidden;
}

.intro-paragraph {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--text-color-primary); /* Used variable */
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------- */
/* --- NEW NAVBAR STYLES (Glassmorphism & Gradient) --- */
/* ---------------------------------------------------- */

/* Icon specific styles and animation */
.login-icon, .house-icon, .courses-icon, .info-icon, .register-icon, .dashboard-icon, .fa-bullhorn, .fa-envelope, .fa-user-check {
    margin-right: 0; /* Ensures the initial size is minimal for icon-only mode */
    transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
    color: var(--text-color-light) !important; /* Used variable */
}

/* 1. Hide the Text Label by default (assuming HTML is wrapped in <span class="nav-label">) */
.nav-link .nav-label {
    /* Sets the width to zero to hide the text */
    max-width: 0;
    opacity: 0;
    /* Move it left to be right next to the icon initially */
    transform: translateX(-5px);
    transition: max-width 0.4s ease-out, opacity 0.4s, transform 0.4s;
    /* Adds separation between the icon and the text when visible */
    padding-left: 8px;
    font-weight: 500;
}

/* Adjustments for the dropdown toggle arrow (to prevent overlap) */
.nav-link.dropdown-toggle .nav-label {
    padding-right: 5px;
}

/* --- Navbar Styles --- */

/* Base Navbar Container: Transparent Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* New: Glassmorphism base style */
    background-color: rgba(2, 91, 143, 0.05) !important; /* Almost transparent */
    backdrop-filter: blur(8px); /* Stronger blur for better glass effect */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Subtle initial shadow */

    transition: all 0.5s ease-in-out; /* Smooth transition for background/shadow changes */

    padding: 0.75rem 1.5rem; /* Increased vertical padding */
}

/* NEW: Active/Scrolled/Hover State */
/* The faulty selector for collapse was removed. We rely on :hover and .scrolled */
.navbar:hover,
.navbar.scrolled {
    background-color: rgba(2, 91, 143, 0.8) !important; /* Semi-solid blue for better contrast when needed */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0px); /* Remove blur when solidifying */
    -webkit-backdrop-filter: blur(0px);
}

/* Navigation Menu */
.navbar-nav {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    margin-left: auto;
}

.navbar-nav .nav-item {
    display: block;
    margin-bottom: 0;
}

/* 2. On Nav Link Hover: Reveal the Text */
.navbar-nav .nav-link:hover .nav-label {
    /* Reveal the text */
    max-width: 200px; /* Arbitrary large enough width */
    opacity: 1;
    transform: translateX(0); /* Bring the text back into view */
    padding-left: 10px; /* Increased separation */
}

/* Main Navbar Links (excluding dropdown items) */
.navbar-nav > .nav-item > .nav-link {
    /* New vibrant gradient: Orange/Red to Cyan/Blue */
    background: linear-gradient(135deg, #FF5722 30%, #00bcd4 100%); 
    border-radius: 50px; /* Highly rounded pill shape */
    margin: 0 6px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-color-light) !important; /* Used variable */
    
    /* Stronger, floating shadow effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.3);

    /* ICON-ONLY SETUP: Base styles */
    padding: 10px 14px !important; /* Adjusted for larger, more clickable icons */
    display: flex; 
    align-items: center;
    white-space: nowrap; 
    overflow: hidden; 
    /* END ICON-ONLY SETUP */
}

.navbar-nav > .nav-item > .nav-link:hover {
    background: linear-gradient(135deg, #ff1900 30%, #0064f1 100%); /* Stronger gradient on hover */
    transform: translateY(-3px) scale(1.02); /* Lift and slight scale effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.5);
    
    /* ICON-ONLY SETUP: Expand the container on hover */
    padding-right: 25px !important; 
}

.navbar-nav > .nav-item > .nav-link:hover i {
    transform: scale(1.3) rotate(0deg); 
    color: #ffeb3b !important; /* Brighter gold/yellow color on hover */
}


.password-container {
    position: relative;
}

/* Profile and Dashboard Styles */
.profile-card {
    background-color: maroon;
    border-radius: 20px;
    margin-top: 50px;
}

.profile-header {
    color: #3498db;
    text-align: center;
}

.row-container {
    border: 1px solid var(--card-box-bg); /* Used variable for border */
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 20px;
}

.row-container:hover {
    box-shadow: 0 4px 8px rgba(0, 76, 255, 0.66);
}

/* --- Testimonial Slider Styles --- */
.slider-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
    border-radius: 16px;
    padding: 20px 0; /* Added padding to ensure it stands out */
}

.slider-dots {
    text-align: center;
    padding-top: 1.5rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.testimonial-author {
    font-weight: 700;
    color: #8d1601;
    margin-top: 1rem;
    display: block;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--bg-primary); /* Used variable */
    box-shadow: 0 15px 30px var(--box-shadow-color); /* Used variable */
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Quote styling */
.testimonial-slide p:first-child {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color-primary); /* Used variable */
    line-height: 1.75;
}

.testimonial-slides {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.text-profile {
    color: var(--text-color-light); /* Used variable */
}

.toggle-password {
    position: absolute;
    top: 70%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #0082f4;
}

/* ---------------------------------------------------- */
/* --- RESPONSIVE STYLES (MEDIA QUERIES) --- */
/* ---------------------------------------------------- */

/* Tablet/Desktop (>= 640px) */
@media (min-width: 640px) {
    .courses-container {
        padding: 2.5rem;
    }
    .main-heading {
        font-size: 2.25rem;
    }
}

/* Tablet/Desktop (>= 768px) */
@media (min-width: 768px) {
    .courses-container {
        padding: 2.5rem;
    }
    .main-heading {
        font-size: 3rem;
    }
    .course-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .toggle-password {
        top: 70%; /* Reset toggle password position for non-mobile views */
        right: 10px;
    }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
    .main-heading {
        font-size: 3.75rem;
        color: var(--text-color-primary);
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    
    /* FIX: Ensures the navbar remains solid when the mobile menu is open,
       which is what is requested to prevent the content behind the menu from showing */
    .navbar-collapse.show {
        background-color: rgba(2, 91, 143, 0.95); /* Solidifies the background when expanded */
        border-radius: 0 0 10px 10px;
        padding-bottom: 10px;
    }

    /* Reset icon-only properties for stacked mobile view where text is required */
    .navbar-nav > .nav-item > .nav-link,
    .navbar-nav .dropdown-toggle {
        /* Restore normal padding and layout for vertical stacking */
        padding: 12px 20px !important; /* Slightly larger padding for touch targets */
        justify-content: flex-start;
        text-align: left;

        /* Existing mobile styles preserved */
        margin: 8px auto; /* Increased margin */
        width: 90%;
        /* Use the same enhanced shadow style */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.3);
        border-radius: 12px; /* Reset to normal rounded corners for mobile blocks */
    }

    .navbar-nav > .nav-item > .nav-link:hover {
        padding-right: 20px !important; /* Prevent excessive expansion on mobile hover */
        transform: translateY(-2px); /* Maintain a subtle lift effect */
    }

    /* Ensure label is fully visible on mobile */
    .nav-link .nav-label {
        max-width: 200px;
        opacity: 1;
        transform: translateX(0);
        padding-left: 8px;
        display: inline; /* Ensure it behaves like normal text on mobile */
    }

    /* Restore margin on icon for spacing on mobile */
    .nav-link i {
        margin-right: 8px;
    }


    /* About Section Mobile */
    .about-section .container.about-content-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        width: 100%;
        padding-bottom: 50px; /* Reduced unnecessary large bottom margin */
    }

    .about-section .container {
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    .about-text-column,
    .about-image-column {
        min-width: unset;
        width: 100%;
    }

    .about-image-column {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .about-img {
        height: 150px;
    }

    .about-section h2 {
        font-size: 2rem;
    }
    .about-section p {
        font-size: 1rem;
    }

    /* Navbar Mobile */
    .navbar {
        padding-right: 20px;
        justify-content: space-between;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%; /* Ensure collapsed menu takes full width */
    }

    .dropdown-menu {
        width: 90%;
        margin: 0 auto;
        left: 5%;
        right: 5%;
    }

    .dropdown-menu .dropdown-item {
        box-shadow: none; /* Remove redundant shadow from dropdown items */
        text-align: left;
    }

    .card-box, .dashboard-box, .card-love-you {
        border-radius: 15px;
        margin: 10px;
        padding: 15px;
    }

    .form-control {
        width: 95%;
        box-sizing: border-box;
    }

    .navbar-toggler {
        position: fixed;
        top: 15px;
        right: 1rem;
        box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.2);
    }

    /* Mobile toggle-password position fix */
    .toggle-password {
        top: 70%;
        right: 20px;
        transform: translateY(-50%);
    }

    /* --- Floating Contact Button Mobile Overrides --- */
    .floating-contact-btn {
        /* New Mobile Position: Bottom-Right */
        top: auto; /* Override desktop 'top' */
        left: auto; /* Override desktop 'left' */
        bottom: 20px;
        right: 20px;

        /* Make it circular for mobile thumb-access */
        padding: 10px 15px; /* Reduced padding */
        border-radius: 50%; /* Make it round (like a chat bubble icon) */
        width: 55px; /* Fixed width/height for the circle */
        height: 55px;
        align-items: center;
        justify-content: center;

        /* Change color for distinction/prominence */
        background-color: #ff5722;
    }

    /* IMPORTANT: You MUST wrap the "Contact Us" text in a <span> tag in your HTML for this to work correctly */
    .floating-contact-btn span {
        /* Hide the 'Contact Us' text on mobile to save space */
        display: none;
    }

    .floating-contact-btn i {
        /* Center the icon and make it slightly larger */
        margin-right: 0;
        font-size: 1.3em;
    }
}

/* Optional: Make it disappear on very small mobile screens if space is tight */
@media (max-width: 576px) {
    /* Keeping the floating contact button visible as a small icon,
       but you can re-enable the 'display: none;' here if you prefer
       to hide it on the smallest phones.
    */
}