:root { --primary-color: #2e7d32; --secondary-color: #4caf50; --accent-color: #1b5e20; --light-bg: #f9f9f9; --text-color: #333; --container-bg: #fff; --shadow: 0 4px 20px rgba(0, 0, 0, 0.12); --border-radius: 10px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--light-bg); color: var(--text-color); line-height: 1.7; padding: 0; margin: 0; display: flex; flex-direction: column; min-height: 100vh; width: 100%; font-size: 13px; } .header { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; padding: 20px 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); width: 100%; } .header-content { max-width: none; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 100%; } .logo-container { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .logo { font-size: 2rem; } .school-name { font-size: 1.2rem; font-weight: 600; } .header-info { font-size: 13px; } .main-container { display: flex; flex-direction: column; flex: 1; max-width: none; margin: 0 auto; width: 100%; padding: 15px; gap: 20px; position: relative; } .mobile-nav-toggle { display: block; background: var(--primary-color); color: white; padding: 12px 15px; border-radius: 5px; text-align: center; margin-bottom: 15px; cursor: pointer; width: 100%; position: relative; z-index: 1000; } .mobile-nav-toggle i { margin-right: 8px; } /* Mobile modal styles - positioned relative to viewport, not parent */ /* Hide desktop nav on mobile */ @media (max-width: 991px) { .desktop-nav { display: none !important; } } /* Hide mobile nav on desktop */ @media (min-width: 992px) { #policyNav { display: none !important; } } @media (max-width: 991px) { .policy-nav { display: none !important; background: white !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: var(--shadow) !important; width: 100vw !important; height: 100vh !important; max-width: 100vw !important; max-height: 100vh !important; min-width: 100vw !important; min-height: 100vh !important; position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; z-index: 99999 !important; overflow-y: auto !important; overflow-x: hidden !important; box-sizing: border-box !important; transform: none !important; border: none !important; /* Break out of parent container */ margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important; } .policy-nav.active { display: flex !important; flex-direction: column !important; } /* Content wrapper inside modal */ .policy-nav > * { padding: 20px 15px !important; width: 100% !important; box-sizing: border-box !important; } /* Navigation list */ .policy-nav ul { list-style: none !important; flex: 1 !important; min-height: calc(100vh - 120px) !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; width: 100% !important; margin: 0 !important; padding: 0 15px 20px 15px !important; box-sizing: border-box !important; } /* Ensure nav title has proper spacing */ .policy-nav .nav-title { margin-top: 50px !important; margin-bottom: 20px !important; padding: 0 15px !important; } /* Close button positioning */ .nav-close { position: fixed !important; top: 15px !important; right: 15px !important; z-index: 100000 !important; } /* Hide other content when modal is active */ body.modal-open .header, body.modal-open .footer, body.modal-open .policy-content { display: none !important; } /* Ensure modal covers everything */ body.modal-open .policy-nav.active { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 999999 !important; } } /* Close button for mobile modal */ .nav-close { position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10000; } /* Adjust nav title spacing for mobile modal */ .policy-nav .nav-title { margin-top: 50px; margin-bottom: 20px; } /* Prevent body scroll when modal is open */ body.modal-open { overflow: hidden !important; position: fixed !important; width: 100% !important; height: 100% !important; } .nav-title { font-weight: 700; margin-bottom: 15px; color: var(--primary-color); font-size: 1.2rem; padding-bottom: 8px; border-bottom: 2px solid var(--secondary-color); } .policy-nav ul { list-style: none; } .policy-nav li { margin-bottom: 10px; } .policy-nav a { color: var(--text-color); text-decoration: none; transition: all 0.2s; display: block; padding: 10px 12px; border-left: 4px solid transparent; border-radius: 4px; background: #f8f8f8; font-size: 13px; } .policy-nav a:hover, .policy-nav a.active { color: var(--primary-color); border-left-color: var(--primary-color); background: #e8f5e9; font-weight: 600; } .policy-content { background: white; border-radius: var(--border-radius); padding: 25px 20px; box-shadow: var(--shadow); width: 100%; } .policy-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--primary-color); } h1 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; } .last-updated { color: #666; font-style: italic; margin-top: 8px; font-size: 13px; } .section { margin-bottom: 35px; scroll-margin-top: 15px; } h2 { color: var(--secondary-color); font-size: 1.1rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; line-height: 1.3; } h2 i { margin-right: 12px; color: var(--accent-color); font-size: 1.1rem; } h3 { color: var(--accent-color); font-size: 1.0rem; margin: 25px 0 15px 0; display: flex; align-items: center; line-height: 1.3; } h3 i { margin-right: 10px; font-size: 1.0rem; } .policy-body { text-align: left; margin-bottom: 10px; font-size: 13px; line-height: 1.7; } .policy-body p { margin-bottom: 15px; } .policy-body ul { margin: 15px 0; padding-left: 25px; } .policy-body li { margin-bottom: 12px; } table { width: 100%; border-collapse: collapse; margin: 20px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; display: block; overflow-x: auto; white-space: nowrap; } table, th, td { border: 1px solid #ddd; } th, td { padding: 14px 16px; text-align: left; white-space: normal; font-size: 13px; } th { background-color: var(--primary-color); color: white; font-weight: 600; } tr:nth-child(even) { background-color: #f9f9f9; } tr:hover { background-color: #f1f8e9; } .actions-container { display: flex; flex-direction: column; justify-content: center; gap: 15px; margin-top: 40px; padding-top: 25px; border-top: 1px solid #e0e0e0; } .action-btn { padding: 14px 20px; background-color: var(--primary-color); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 100%; text-align: center; } .action-btn:hover { background-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); } .action-btn.print { background-color: #555; } .action-btn.print:hover { background-color: #333; } .footer { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); color: white; text-align: center; padding: 20px 15px; margin-top: 30px; width: 100%; } .footer p { margin-bottom: 8px; font-size: 13px; } .breadcrumb { margin-bottom: 20px; font-size: 13px; color: #666; } .breadcrumb a { color: var(--primary-color); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } .search-box { margin-bottom: 20px; position: relative; } .search-box input { width: 100%; padding: 12px 45px 12px 15px; border: 1px solid #ddd; border-radius: 30px; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .search-box i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #666; } .policy-image { max-width: none; height: auto; border: 1px solid #ddd; margin: 15px 0; display: block; border-radius: 8px; } /* Tablet styles */ @media (min-width: 768px) and (max-width: 991px) { .policy-nav a { font-size: 13px; } h1 { font-size: 1.2rem; } .actions-container { flex-direction: row; flex-wrap: wrap; } .action-btn { flex: 1; min-width: 300px; } } /* Desktop styles */ @media (min-width: 992px) { .header { padding: 25px 40px; } .header-content { flex-direction: row; justify-content: space-between; text-align: left; } .logo-container { margin-bottom: 0; } .mobile-nav-toggle { display: none; } .main-container { flex-direction: row; padding: 25px; gap: 30px; max-width: none; } /* Override mobile modal styles for desktop */ .policy-nav { display: block !important; position: static !important; width: auto !important; height: auto !important; flex: 0 0 280px; max-height: calc(150vh - 50px); position: sticky !important; top: 25px; align-self: flex-start; border-radius: var(--border-radius) !important; z-index: auto !important; padding: 20px 15px !important; } .policy-nav ul { flex: none !important; min-height: auto !important; display: block !important; } .policy-content { flex: 1; padding: 35px; } h1 { font-size: 1.5rem; } .actions-container { flex-direction: row; } .action-btn { width: auto; } /* Hide close button on desktop */ .nav-close { display: none !important; } /* Reset nav title margin on desktop */ .policy-nav .nav-title { margin-top: 15px !important; } } @media print { .policy-nav, .actions-container, .header, .footer, .mobile-nav-toggle { display: none; } .main-container { padding: 0; margin: 0; } .policy-content { box-shadow: none; padding: 0; } body { background-color: white; padding: 20px; } }