
/* ========================================
   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;
}
img, video {
    max-width: none !important;
    max-height: none !important;
}
/* 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 
   ======================================== */