/* ========================================
   RESPONSIVE CSS FOR DPS STAFF SECTION ONLY
   ======================================== */
img, video {
    max-width: none !important;
    max-height: none !important;
}
  
/* ========================================
   TAILWIND CSS OVERRIDES WITH IMPORTANT
   ======================================== */

/* Remove all default Tailwind form styling */
input[type="text"].custom-input,
select.custom-select,
button.custom-button {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove gray shadows and ring effects on ALL states */
input.custom-input:focus,
input.custom-input:active,
input.custom-input:hover,
select.custom-select:focus,
select.custom-select:active,
select.custom-select:hover {
    border-color: var(--dps-blue) !important;
    box-shadow: none !important;
    ring: none !important;
    ring-color: transparent !important;
    ring-offset-color: transparent !important;
    outline: none !important;
    outline-offset: 0 !important;
    background-color: #ffffff !important;
}

/* Ensure consistent sizing across all form elements */
.flex-1.relative input.custom-input,
.flex.gap-3 select.custom-select,
.flex.gap-3 button.custom-button {
    height: 48px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* Override any Tailwind ring utilities completely */
*:focus {
    --tw-ring-shadow: none !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-shadow: none !important;
    --tw-ring-offset-color: transparent !important;
}

.custom-input:focus,
.custom-input:active,
.custom-input:hover,
.custom-select:focus,
.custom-select:active,
.custom-select:hover {
    --tw-ring-shadow: none !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-shadow: none !important;
    --tw-ring-offset-color: transparent !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: none !important;
}

/* Remove any webkit focus styling */
input.custom-input:focus::-webkit-input-placeholder,
input.custom-input:active::-webkit-input-placeholder,
input.custom-input:hover::-webkit-input-placeholder {
    color: #9ca3af !important;
}

/* Mobile-specific placeholder text change using JavaScript */
@media (max-width: 640px) {
    #searchInput {
        font-size: 14px !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    #searchInput::placeholder {
        color: #9ca3af !important;
        font-size: 14px !important;
    }
    
    /* Increase select width on mobile */
    #designationFilter,
    #qualificationFilter {
        width: 100% !important;
        min-width: 100% !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    #searchInput {
        font-size: 13px !important;
    }
    
    #searchInput::placeholder {
        font-size: 13px !important;
    }
    
    #designationFilter,
    #qualificationFilter {
        font-size: 13px !important;
    }
}

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    --dps-blue: #1e40af;
    --dps-blue-dark: #1e3a8a;
    --dps-gold: #f59e0b;
}

/* ========================================
   STAFF SECTION RESPONSIVE LAYOUT
   ======================================== */
section {
    background-color: #ffffff !important;
}

/* Responsive container padding */
@media (max-width: 640px) {
    .max-w-7xl.mx-auto.px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ========================================
   RESPONSIVE SECTION HEADER
   ======================================== */
@media (max-width: 768px) {
    .text-3xl.md\\:text-4xl.lg\\:text-5xl {
        font-size: 1.875rem !important;
    }
    
    .text-lg.md\\:text-xl {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .text-3xl.md\\:text-4xl.lg\\:text-5xl {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .text-lg.md\\:text-xl {
        font-size: 0.9rem !important;
    }
    
    .mb-12 {
        margin-bottom: 2rem !important;
    }
}

/* ========================================
   RESPONSIVE STATS CARDS GRID
   ======================================== */
.grid.grid-cols-2.md\\:grid-cols-4.lg\\:grid-cols-6 {
    display: grid;
    gap: 1rem;
}

@media (max-width: 480px) {
    .grid.grid-cols-2.md\\:grid-cols-4.lg\\:grid-cols-6 {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 0.75rem;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .grid.grid-cols-2.md\\:grid-cols-4.lg\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .grid.grid-cols-2.md\\:grid-cols-4.lg\\:grid-cols-6 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .grid.grid-cols-2.md\\:grid-cols-4.lg\\:grid-cols-6 {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

/* ========================================
   RESPONSIVE SEARCH AND FILTER SECTION
   ======================================== */
.flex.flex-col.lg\\:flex-row.gap-4.items-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .flex.flex-col.lg\\:flex-row.gap-4.items-center {
        flex-direction: row;
        align-items: center;
    }
}

.flex.gap-3 {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Increase width for mobile search and filters */
    .flex-1.relative {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    .flex-1.relative input.custom-input {
        width: 100% !important;
        min-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 50px !important;
    }
    
    .flex.gap-3 select.custom-select {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .flex.gap-3 button.custom-button {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* ========================================
   RESPONSIVE FORM ELEMENTS WITH IMPORTANT OVERRIDES
   ======================================== */
.custom-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    background-color: #ffffff !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    line-height: 1.4 !important;
    color: #374151 !important;
}

.custom-input:focus,
.custom-input:active,
.custom-input:hover {
    outline: none !important;
    border-color: var(--dps-blue) !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}

/* Mobile responsive placeholder text */
.custom-input::placeholder {
    color: #9ca3af !important;
    font-size: 14px !important;
}

@media (max-width: 640px) {
    .custom-input::placeholder {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .custom-input::placeholder {
        font-size: 12px !important;
    }
}

.custom-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    padding: 14px 40px 14px 16px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    min-width: 140px !important;
    height: 48px !important;
    line-height: 1.4 !important;
    color: #374151 !important;
}

@media (min-width: 640px) {
    .custom-select {
        width: auto !important;
        min-width: 160px !important;
    }
}

.custom-select:focus,
.custom-select:active,
.custom-select:hover {
    outline: none !important;
    border-color: var(--dps-blue) !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}

.custom-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

@media (min-width: 640px) {
    .custom-button {
        width: auto !important;
    }
}

.btn-reset {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: white !important;
    box-shadow: none !important;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.search-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: 20px !important;
    pointer-events: none !important;
}

/* ========================================
   RESPONSIVE TABLE CONTAINER
   ======================================== */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for table */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   RESPONSIVE TABLE STYLES
   ======================================== */
#staffTable {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 14px;
}

@media (max-width: 768px) {
    #staffTable {
        min-width: 600px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    #staffTable {
        min-width: 500px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #staffTable {
        min-width: 450px;
        font-size: 11px;
    }
}

/* Table header responsive */
#staffTable th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 768px) {
    #staffTable th {
        padding: 12px 8px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    #staffTable th {
        padding: 10px 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #staffTable th {
        padding: 8px 4px;
        font-size: 11px;
    }
}

/* Table cell responsive */
#staffTable td {
    padding: 16px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

@media (max-width: 768px) {
    #staffTable td {
        padding: 12px 8px;
    }
}

@media (max-width: 640px) {
    #staffTable td {
        padding: 10px 6px;
    }
}

@media (max-width: 480px) {
    #staffTable td {
        padding: 8px 4px;
    }
}

/* ========================================
   RESPONSIVE DESIGNATION BADGES
   ======================================== */
.inline-flex.px-3.py-1.text-xs.font-semibold.rounded-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .inline-flex.px-3.py-1.text-xs.font-semibold.rounded-full {
        padding: 3px 8px;
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .inline-flex.px-3.py-1.text-xs.font-semibold.rounded-full {
        padding: 2px 6px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .inline-flex.px-3.py-1.text-xs.font-semibold.rounded-full {
        padding: 1px 4px;
        font-size: 8px;
        min-width: 60px;
    }
}

/* ========================================
   RESPONSIVE DOWNLOAD SECTION
   ======================================== */
.flex.flex-col.sm\\:flex-row.gap-4.justify-center.items-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .flex.flex-col.sm\\:flex-row.gap-4.justify-center.items-center {
        flex-direction: row;
    }
}

.inline-flex.items-center.px-8.py-4 {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    justify-content: center;
    width: 100%;
    max-width: 280px;
}

@media (min-width: 640px) {
    .inline-flex.items-center.px-8.py-4 {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .inline-flex.items-center.px-8.py-4 {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE SPACING
   ======================================== */
@media (max-width: 768px) {
    .py-12.md\\:py-16.lg\\:py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .py-12.md\\:py-16.lg\\:py-20 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1rem !important;
    }
    
    .p-6 {
        padding: 1rem !important;
    }
    
    .p-8 {
        padding: 1.25rem !important;
    }
}

/* ========================================
   RESPONSIVE CARDS AND CONTAINERS
   ======================================== */
@media (max-width: 640px) {
    .rounded-2xl {
        border-radius: 8px !important;
    }
    
    .shadow-xl {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    }
}

@media (max-width: 480px) {
    .bg-white.rounded-xl.p-4.shadow-lg {
        padding: 12px !important;
    }
    
    .bg-white.rounded-xl.p-4.shadow-lg .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .bg-white.rounded-xl.p-4.shadow-lg .text-xs {
        font-size: 10px !important;
    }
    
    .w-10.h-10 {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
}

/* ========================================
   RESPONSIVE NO RESULTS MESSAGE
   ======================================== */
@media (max-width: 768px) {
    #noResultsMessage {
        padding: 2rem 1rem !important;
    }
    
    #noResultsMessage h3 {
        font-size: 1.125rem !important;
    }
    
    #noResultsMessage p {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    #noResultsMessage {
        padding: 1.5rem 0.75rem !important;
    }
    
    #noResultsMessage h3 {
        font-size: 1rem !important;
    }
    
    #noResultsMessage p {
        font-size: 0.8rem !important;
    }
    
    .w-20.h-20 {
        width: 3rem !important;
        height: 3rem !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .bg-white.rounded-2xl.shadow-xl {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    
    .custom-button,
    .search-icon,
    .floating-buttons-container {
        display: none !important;
    }
    
    .overflow-x-auto {
        overflow: visible !important;
    }
    
    #staffTable {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .inline-flex.px-3.py-1.text-xs.font-semibold.rounded-full {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}
/* ========================================
   FIXED HEADER & NAVIGATION STYLES
   ======================================== */

/* Global scrollbar hiding for clean mobile experience */
body {
    font-family: 'Inter', sans-serif;
}

/* DPS Blue Color Variable */
:root {
    --dps-blue: #1e40af;
    --dps-blue-hover: #1e3a8a;
    --dps-blue-light: #3b82f6;
}

/* Disable iOS automatic link detection and styling */
a {
    color: inherit !important;
    text-decoration: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Prevent iOS from styling phone numbers and emails */
* {
    -webkit-touch-callout: none !important;
    -webkit-text-size-adjust: none !important;
}

/* Specifically target text that might be auto-detected */
.no-link-detection {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

/* Hide scrollbars on mobile devices while allowing scrolling */
@media (max-width: 768px) {
    html, body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    html::-webkit-scrollbar, 
    body::-webkit-scrollbar {
        display: none; /* WebKit browsers */
    }
}

/* Modern Gradients */
.gradient-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
}

/* DPS Blue Color Class */
.text-dps-blue {
    color: var(--dps-blue) !important;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

/* Navigation - Enhanced for better visibility and z-index management */
.nav-backdrop {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 9999 !important;
}

/* Enhanced Logo and School Name Positioning */
@media (min-width: 1280px) {
    .nav-logo-section {
        margin-right: 1.5rem;
    }
    
    .nav-school-name {
        margin-left: -0.25rem;
    }
    
    /* Desktop Header Grid Layout for Standard PC/Laptop */
    .desktop-header-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
        align-items: center;
        padding: 1.5rem 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .desktop-left-section {
        justify-self: start;
        text-align: left;
    }
    
    .desktop-center-section {
        justify-self: center;
        text-align: center;
    }
    
    .desktop-right-section {
        justify-self: end;
        text-align: right;
    }
}

@media (min-width: 1536px) {
    .nav-logo-section {
        margin-right: 2rem;
    }
    
    .nav-school-name {
        margin-left: -0.5rem;
    }
    
    .desktop-header-grid {
        gap: 1.5rem;
        padding: 1.5rem 1.25rem;
    }
}

/* Enhanced for 27-inch displays and standard large screens */
@media (min-width: 1920px) {
    .desktop-header-grid {
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
}

/* Mac M2 and High-Resolution Displays (2560px+) */
@media (min-width: 2560px) {
    .desktop-header-grid {
        gap: 3rem;
        padding: 2.5rem 2rem;
        grid-template-columns: 1.2fr auto 1.2fr;
    }
    
    .desktop-left-section {
        padding-right: 1rem;
    }
    
    .desktop-right-section {
        padding-left: 1rem;
    }
}

/* Ultra-wide and very high resolution displays (3200px+) */
@media (min-width: 3200px) {
    .desktop-header-grid {
        gap: 4rem;
        padding: 3rem 3rem;
        grid-template-columns: 1.5fr auto 1.5fr;
    }
    
    .desktop-left-section {
        padding-right: 2rem;
    }
    
    .desktop-right-section {
        padding-left: 2rem;
    }
}

/* Mac Studio Display and similar (5K displays - 5120px+) */
@media (min-width: 5120px) {
    .desktop-header-grid {
        gap: 6rem;
        padding: 4rem 5rem;
        grid-template-columns: 2fr auto 2fr;
    }
    
    .desktop-left-section {
        padding-right: 3rem;
    }
    
    .desktop-right-section {
        padding-left: 3rem;
    }
}

/* FIXED: Desktop Dropdown Styles with proper z-index and positioning */
.dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    border: 1px solid #e5e7eb;
    z-index: 99999 !important;
    min-width: 220px;
    width: max-content;
    white-space: nowrap;
}

/* FIXED: Submenu dropdown positioning - appears to the right */
.dropdown-submenu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
    pointer-events: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    border: 1px solid #e5e7eb;
    z-index: 99999 !important;
    min-width: 200px;
    width: max-content;
    white-space: nowrap;
}

/* FIXED: Nav item positioning and hover areas */
.nav-item {
    position: relative;
    display: inline-block;
}

/* FIXED: Proper hover states that don't conflict */
.nav-item:hover > .dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition-delay: 0s;
}

/* FIXED: Submenu hover - only triggers when hovering over the specific item */
.nav-item .dropdown .nav-item:hover > .dropdown-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    transition-delay: 0s;
}

/* Keep dropdowns open when hovering over them */
.dropdown:hover,
.dropdown-submenu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s;
}

.dropdown:hover {
    transform: translateY(0) !important;
}

.dropdown-submenu:hover {
    transform: translateX(0) !important;
}

/* FIXED: Enhanced hover effects for dropdown items */
.dropdown a, 
.dropdown button,
.dropdown-submenu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    width: auto;
    min-width: fit-content;
}

.dropdown a:hover, 
.dropdown button:hover,
.dropdown-submenu a:hover {
    background-color: #f3f4f6 !important;
    color: var(--dps-blue) !important;
    transform: translateX(2px);
}

/* FIXED: Prevent dropdown conflicts */
.nav-item::after {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    bottom: -0.5rem;
    z-index: 1;
    pointer-events: none;
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Prevent horizontal scroll and hide main scrollbars on mobile */
.no-horizontal-scroll {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Enhanced Logo sizing for different screen sizes */
.logo-main {
    width: 80px;
    height: 80px;
}

.logo-desktop {
    width: 120px;
    height: 120px;
}

/* Standard responsive scaling */
@media (min-width: 768px) {
    .logo-main {
        width: 120px;
        height: 120px;
    }
    .logo-desktop {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 1024px) {
    .logo-desktop {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 1280px) {
    .logo-desktop {
        width: 180px;
        height: 180px;
    }
}

@media (min-width: 1536px) {
    .logo-desktop {
        width: 200px;
        height: 200px;
    }
}

/* Enhanced for 27-inch displays */
@media (min-width: 1920px) {
    .logo-desktop {
        width: 240px;
        height: 240px;
    }
    
    .header-27inch {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    
    .desktop-grid-27inch {
        gap: 2rem;
    }
}

/* FIXED: Navigation Styles - More compact and better spaced */
.nav-compact {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    color: #374151;
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.nav-compact:hover {
    color: var(--dps-blue) !important;
}

/* FIXED: Ensure all navigation links get hover effect */
.text-gray-800 {
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.text-gray-800:hover {
    color: var(--dps-blue) !important;
}

/* FIXED: Navigation buttons (with dropdowns) hover effect */
.nav-item button {
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.nav-item button:hover {
    color: var(--dps-blue) !important;
}

/* FIXED: Direct navigation links hover effect */
a[href="#"].nav-compact,
a[href="#"].text-gray-800 {
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

a[href="#"].nav-compact:hover,
a[href="#"].text-gray-800:hover {
    color: var(--dps-blue) !important;
}

/* Tablet navigation (768px to 1279px) */
@media (min-width: 768px) and (max-width: 1279px) {
    .nav-compact {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

@media (min-width: 1280px) {
    .nav-compact {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 1536px) {
    .nav-compact {
        font-size: 0.9rem;
        padding: 0.5rem 0.875rem;
    }
}

/* Enhanced Registration Form Sizing for Desktop/Laptop */
@media (min-width: 1024px) {
    .registration-form-desktop h3 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }
}

@media (min-width: 1280px) {
    .registration-form-desktop h3 {
        font-size: 1.125rem !important;
        margin-bottom: 1.125rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
}

@media (min-width: 1536px) {
    .registration-form-desktop h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 0.65rem 1.3rem !important;
        font-size: 0.85rem !important;
    }
}

@media (min-width: 1920px) {
    .registration-form-desktop h3 {
        font-size: 1.375rem !important;
        margin-bottom: 1.375rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Mac M2 Laptops and similar high-res laptops (laptop aspect ratio) */
@media (min-width: 2560px) and (max-height: 1700px) {
    .registration-form-desktop h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Mac M2 and High-Resolution Desktop Displays (desktop aspect ratio) */
@media (min-width: 2560px) and (min-height: 1700px) {
    .registration-form-desktop h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 0.875rem 1.75rem !important;
        font-size: 1rem !important;
    }
}

/* Ultra-wide displays */
@media (min-width: 3200px) {
    .registration-form-desktop h3 {
        font-size: 1.75rem !important;
        margin-bottom: 1.75rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 1rem 2rem !important;
        font-size: 1.125rem !important;
    }
}

/* 5K displays and above */
@media (min-width: 5120px) {
    .registration-form-desktop h3 {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        letter-spacing: 0.05em !important;
    }
    
    .registration-form-desktop .btn {
        padding: 1.25rem 2.5rem !important;
        font-size: 1.25rem !important;
    }
}

/* Mobile and Tablet Navigation Styles */
@media (max-width: 1279px) {
    .mobile-menu {
        position: fixed !important;
        top: 64px !important;
        right: 0 !important;
        height: calc(100vh - 64px) !important;
        width: min(320px, 85vw) !important;
        background-color: white !important;
        box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 9999 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        -webkit-overflow-scrolling: touch !important;
        
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .mobile-menu::-webkit-scrollbar {
        display: none !important;
    }
    
    .mobile-menu.active {
        transform: translateX(0) !important;
    }
    
    .mobile-menu-content {
        padding: 1.5rem 1rem 3rem 1rem !important;
        min-height: calc(100vh - 64px) !important;
    }
    
    .mobile-dropdown {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
        opacity: 0 !important;
    }
    
    .mobile-dropdown.show {
        max-height: 500px !important;
        opacity: 1 !important;
    }
    
    .mobile-dropdown.hidden {
        display: block !important;
        max-height: 0 !important;
        opacity: 0 !important;
    }
}

/* FIXED: Prevent body scroll when mobile menu is open */
html.menu-open,
body.menu-open {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-overflow-scrolling: auto !important;
}

/* Ensure all content sections stay below navigation */
section, .section, main, .main, article, .article {
    position: relative;
    z-index: 1 !important;
}

/* Force navigation to always be visible */
nav, .nav, .navigation {
    position: relative !important;
    z-index: 9999 !important;
}

/* Additional safety for sticky navigation */
.nav-backdrop {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
}

/* ========================================
   END FIXED HEADER & NAVIGATION
   ======================================== */
/* ========================================
   DPS WHATSAPP SECTION CSS START 
   ======================================== */


/* Floating Buttons CSS - Add to your styles.css */
.floating-buttons-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between buttons */
    align-items: flex-end;
}

/* WhatsApp Container */
.whatsapp-container {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.whatsapp-text {
    background: white;
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-container:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp Button */
.whatsapp-fab {
    fill: white;
    width: 56px;
    height: 56px;
    padding: 8px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    pointer-events: auto;
}

.whatsapp-fab:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transform: scale(1.05);
    text-decoration: none;
}

.whatsapp-ico {
    width: 100%;
    height: 100%;
}

/* Back to Top Container */
.back-to-top-container {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-container.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-text {
    background: #1d4ed8;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.back-to-top-container:hover .back-to-top-text {
    opacity: 1;
    transform: translateX(0);
}

/* Back to Top Button - Smaller Circle */
.back-to-top-fab {
    width: 46px; /* Reduced from 56px */
    height: 46px; /* Reduced from 56px */
    background-color: #1d4ed8;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px; /* Reduced from 24px */
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.back-to-top-fab:hover {
    background-color: #1e40af;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transform: scale(1.05);
}

/* Pulse animation for WhatsApp */
@keyframes pulse-whatsapp {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.whatsapp-fab.pulse {
    animation: pulse-whatsapp 2s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-buttons-container {
        right: 15px;
        bottom: 15px;
        gap: 12px;
    }
    
    .whatsapp-fab {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top-fab {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .whatsapp-text,
    .back-to-top-text {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .whatsapp-container,
    .back-to-top-container {
        gap: 8px;
    }
}

/* Very small mobile screens */
@media (max-width: 480px) {
    .whatsapp-text,
    .back-to-top-text {
        display: none; /* Hide text on very small screens */
    }
}

/* ========================================
   DPS WHATSAPP SECTION CSS END 
   ======================================== */
