/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1e3c72;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar from slider breakout */
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.police-logo {
    height: 80px;
    width: auto;
}

.header-title {
    text-align: center;
}

.header-title h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Navigation Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: #1e3c72;
    color: white;
}

.admin-btn {
    background-color: white;
    color: white !important;
    border-radius: 5px;
    margin-left: 10px;
}

.admin-btn:hover {
    background-color: #1e3c72;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 280px;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 5px 0;
}

.dropdown-content > a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    font-size: 0.9em;
    line-height: 1.4;
}

.dropdown-content > a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Side Submenu Styles - Updated Working Version */
.dropdown-item.has-submenu {
    position: relative;
    display: block;
}

.submenu-trigger {
    display: block;
    padding: 12px 16px;
    color: #4a5568 !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.submenu-trigger::after {
    content: '▶';
    float: right;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.submenu-trigger:hover {
    background-color: #edf2f7 !important;
    color: #2b6cb0 !important;
    border-left-color: #2b6cb0;
}

/* Side Submenu */
.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 0;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.has-submenu:hover .submenu {
    display: block !important;
}

.has-submenu:hover .submenu-trigger::after {
    transform: rotate(90deg);
}

.submenu a {
    color: #4a5568;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background-color: #f0f9ff;
    color: #1e40af;
    border-left-color: #3b82f6;
    padding-left: 22px;
}

.submenu-content a:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Slider Styles - SIMPLE FULL WIDTH */
.slider-section {
    width: 100vw;
    height: 70vh; /* Use viewport height for better responsiveness */
    min-height: 400px; /* Minimum height for small screens */
    max-height: 800px; /* Maximum height for very large screens */
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f8ff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Navigation Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: #1e3c72;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-controls button:hover {
    background-color: #1e3c72;
    color: white;
    transform: scale(1.1);
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: #FF6B35;
    border-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.slide.aspect-ratio-preserved img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0; /* Remove border radius for full-width effect */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    /* Add a subtle border to reduce harsh contrast */
    border: 2px solid rgba(255,255,255,0.1);
    /* Ensure full utilization of available space on large screens */
    min-width: 80%;
    min-height: 80%;
}

/* For ultra-wide images, use different approach */
@media (min-aspect-ratio: 21/9) {
    .slide img {
        width: auto;
        height: 100%;
        max-width: none;
    }
}

/* For very tall images */
@media (max-aspect-ratio: 4/5) {
    .slide img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}

/* Specific handling for panoramic images to show full content */
.slide img[style*="object-fit: contain"] {
    /* Ensure contained images show completely */
    max-width: 100%;
    max-height: 100%;
}

/* Better handling for contained images */
.slide.aspect-ratio-preserved img {
    /* Maximize size while maintaining aspect ratio */
    max-width: 95%; /* Slight padding to prevent edge touching */
    max-height: 95%;
}

/* Loading state for images */
.slide img {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide img.loaded {
    opacity: 1;
}

/* Ensure smooth aspect ratio transitions */
.slide.aspect-ratio-preserved {
    transition: background-color 0.3s ease;
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .slider-section {
        height: 80vh !important; /* Larger height for big screens */
        max-height: 900px !important;
    }
}

@media (min-width: 1600px) {
    .slider-section {
        height: 85vh !important; /* Even larger for very big screens */
        max-height: 1000px !important;
    }

    .slide img {
        min-width: 90% !important;
        min-height: 90% !important;
    }

    .slide.aspect-ratio-preserved img {
        min-width: 95% !important;
        min-height: 95% !important;
    }
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .slider-section {
        height: 300px;
        width: 100vw; /* Full viewport width on tablet/mobile */
        left: 50%; /* Move to center */
        right: 50%; /* Move to center */
        margin-left: -50vw; /* Pull back to left edge */
        margin-right: -50vw; /* Pull back to right edge */
        margin-top: 0; /* Remove top margin */
        margin-bottom: 0; /* Remove bottom margin */
        padding: 0; /* Remove all padding */
    }
    
    .slide img:hover {
        transform: none; /* Disable hover effects on mobile */
    }
}

@media (max-width: 480px) {
    .slider-section {
        height: 250px;
        width: 100vw; /* Full viewport width on small mobile */
        left: 50%; /* Move to center */
        right: 50%; /* Move to center */
        margin-left: -50vw; /* Pull back to left edge */
        margin-right: -50vw; /* Pull back to right edge */
        margin-top: 0; /* Remove top margin */
        margin-bottom: 0; /* Remove bottom margin */
        padding: 0; /* Remove all padding */
    }
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.slide-content p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.prev-btn,
.next-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Search Section Styles */
.search-section {
    padding: 30px 0;
    background-color: #f8f9fa;
}

.search-box-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.search-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #1e3c72;
}

.search-box h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.search-form {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input-group label {
    font-weight: 600;
    color: #555;
}

.search-input-group input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input-group input:focus {
    outline: none;
    border-color: #1e3c72;
}

.search-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.search-results {
    min-height: 100px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fafafa;
}

/* Info Cards Section */
.info-cards-section {
    padding: 10px 0 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    height: 60px;
    width: auto;
}

.info-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Professional Announcements Card Styling */
.announcements-card {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8fafe 100%);
    border: 1px solid #e3ebf7;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.announcements-header h3 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.5rem;
}

.live-indicator {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.announcements-preview {
    margin-bottom: 25px;
}

.announcement-preview-item {
    background: white;
    border: 1px solid #e8f0fe;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

.announcement-preview-item:hover {
    border-left-color: #1e3c72;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.announcement-preview-item.urgent {
    border-left-color: #ff4757;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.announcement-preview-item.important {
    border-left-color: #ffa726;
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
}

.announcement-preview-item.normal {
    border-left-color: #42a5f5;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.announcement-preview-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.announcement-preview-date {
    font-size: 0.75rem;
    color: #7f8c8d;
    font-weight: 500;
}

.announcement-preview-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.announcement-preview-urgency {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.announcement-preview-urgency.urgent {
    background: #ffebee;
    color: #c62828;
}

.announcement-preview-urgency.important {
    background: #fff3e0;
    color: #ef6c00;
}

.announcement-preview-urgency.normal {
    background: #e8f5e8;
    color: #2e7d32;
}

.announcement-preview-excerpt {
    font-size: 0.8rem;
    color: #5a6c7d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcements-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.announcements-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.announcements-btn:hover::before {
    left: 100%;
}

/* Scrolling Announcements Styles */
.announcements-scroll-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafe 0%, #fff 100%);
    border: 1px solid #e3ebf7;
    border-radius: 8px;
    margin: 15px 0;
}

.announcements-ticker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    position: relative;
    width: 100%;
}

.announcements-ticker-clone {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Fix for smooth scrolling */
.announcements-ticker {
    will-change: transform;
}

.announcement-scroll-item {
    background: white;
    border: 1px solid #e8f0fe;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    min-height: 90px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    width: calc(100% - 30px);
    box-sizing: border-box;
}

.announcement-scroll-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.announcement-scroll-item.urgent {
    border-left-color: #ff4757;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.announcement-scroll-item.urgent:hover {
    border-left-color: #ff3338;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.2);
}

.announcement-scroll-item.important {
    border-left-color: #ffa726;
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
}

.announcement-scroll-item.important:hover {
    border-left-color: #ff9800;
    box-shadow: 0 4px 16px rgba(255, 167, 38, 0.2);
}

.announcement-scroll-item.normal {
    border-left-color: #42a5f5;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.announcement-scroll-item.normal:hover {
    border-left-color: #2196f3;
    box-shadow: 0 4px 16px rgba(66, 165, 245, 0.2);
}

.announcement-scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.announcement-priority {
    font-size: 1rem;
}

.announcement-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.announcement-date {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 500;
}

.announcement-scroll-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-scroll-excerpt {
    font-size: 0.75rem;
    color: #5a6c7d;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Register Section Styles */
.register-section {
    margin-top: 10px;
    text-align: center;
    border-top: 1px dashed #e0e0e0;
    padding-top: 8px;
}

.register-text {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulseRegister 2s infinite;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.register-text:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    animation: none;
}

@keyframes pulseRegister {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
}

/* Responsive design for scrolling announcements */
@media (max-width: 768px) {
    .announcements-scroll-container {
        height: 200px;
    }
    
    .announcement-scroll-item {
        min-height: 70px;
        padding: 10px;
    }
    
    .announcement-scroll-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .announcement-scroll-title {
        font-size: 0.8rem;
    }
    
    .announcement-scroll-excerpt {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

.announcements-btn:hover::before {
    left: 100%;
}

.announcements-loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.announcements-error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.quick-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn,
.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    gap: 6px;
}

.quick-btn:hover,
.quick-link:hover {
    background-color: #1e3c72;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px 0 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: #fff;
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-link:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.footer-bottom p {
    margin-bottom: 3px;
    font-size: 0.85rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-title h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Slider responsive styles - Full Width */
    .slider-section {
        height: 300px; /* Fixed height for mobile */
        width: 100vw; /* Full viewport width on mobile */
        margin-left: calc(-50vw + 50%); /* Center and extend to edges */
    }
    
    .slide img {
        /* Maintain the same object-fit behavior on mobile */
        border-radius: 0; /* Remove border radius for full-width effect */
    }
    
    /* For very small screens, reduce height further */
    @media (max-width: 480px) {
        .slider-section {
            height: 250px;
            width: 100vw; /* Full viewport width on small mobile */
            margin-left: calc(-50vw + 50%); /* Center and extend to edges */
        }
    }
    
    .slider-controls {
        padding: 0 10px; /* Reduce control padding */
    }
    
    .prev-btn,
    .next-btn {
        font-size: 1.5rem; /* Smaller controls on mobile */
        padding: 8px 12px;
    }
    
    .search-box-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .police-logo {
        height: 60px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .info-card {
        padding: 20px 15px;
    }
}

/* Search Results Styles */
.results-header {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
}

.results-header h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.results-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.event-header h4 {
    margin: 0;
    color: #1e3c72;
    font-size: 1.2rem;
    flex: 1;
}

.status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.scheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-badge.ongoing {
    background-color: #e8f5e8;
    color: #388e3c;
}

.status-badge.completed {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-badge.applications-open {
    background-color: #e8f5e8;
    color: #2e7d32;
    position: relative;
    z-index: 1;
}

.status-badge.applications-closed {
    background-color: #ffebee;
    color: #d32f2f;
    position: relative;
    z-index: 1;
}

/* Prevent duplicate status badges */
.status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.status-badges .status-badge {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Ensure no pseudo-elements create duplicate content */
.status-badge::before,
.status-badge::after {
    display: none !important;
}

/* Remove any fixed positioning that might create duplicates */
.result-item * {
    position: relative !important;
}

.result-item *:not(.status-badge) {
    position: static !important;
}

.event-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
    margin-right: 10px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    flex: 1;
}

.event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #1e3c72;
    color: white;
}

.btn-primary:hover {
    background-color: #2a5298;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.no-results {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.no-results p {
    margin: 0 0 10px 0;
}

.no-results a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Loading animation */
.search-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.search-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for search results */
@media (max-width: 768px) {
    .event-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .detail-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .event-actions {
        justify-content: center;
    }
}

/* Trainee Search Results Styles */
.trainee-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trainee-result-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.trainee-result-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.trainee-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.trainee-photo {
    position: relative;
    flex-shrink: 0;
}

.trainee-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid white;
}

.status-active {
    background-color: #28a745;
    color: white;
}

.status-completed {
    background-color: #6f42c1;
    color: white;
}

.status-inactive {
    background-color: #6c757d;
    color: white;
}

.trainee-basic-info {
    flex: 1;
    min-width: 200px;
}

.trainee-basic-info h4 {
    margin: 0 0 8px 0;
    color: #1e3c72;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-number {
    margin: 4px 0;
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.rank-unit {
    margin: 4px 0;
    color: #6c757d;
    font-weight: 500;
}

.center-info {
    margin: 4px 0;
    color: #007bff;
    font-weight: 600;
}

.trainee-contact {
    flex-shrink: 0;
    text-align: right;
    min-width: 180px;
}

.trainee-contact p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #495057;
}

.trainee-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.detail-section h5 {
    margin: 0 0 12px 0;
    color: #1e3c72;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.detail-item .label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

.detail-item .value {
    color: #333;
    font-weight: 500;
}

.center-type-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.center-type-badge.appa {
    background-color: #e3f2fd;
    color: #1976d2;
}

.center-type-badge.ptc {
    background-color: #e8f5e8;
    color: #388e3c;
}

.center-type-badge.ctc {
    background-color: #fff3e0;
    color: #f57c00;
}

.center-type-badge.dtc {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.center-type-badge.btc {
    background-color: #ffebee;
    color: #d32f2f;
}

.record-clean {
    color: #28a745;
    font-weight: 600;
}

.progress-item {
    margin-bottom: 12px;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.achievements {
    margin-bottom: 12px;
}

.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #856404;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    border: 1px solid #ffc107;
}

.specializations {
    margin-top: 8px;
}

.spec-tags {
    margin-top: 6px;
}

.spec-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
    border: 1px solid #bbdefb;
}

.trainee-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

/* Responsive design for trainee cards */
@media (max-width: 768px) {
    .trainee-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .trainee-contact {
        text-align: center;
        min-width: auto;
    }
    
    .trainee-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .trainee-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Enhanced search input styling */
#trainee-name {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#trainee-name:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    outline: none;
    background: white;
}

#trainee-name::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Loading animation for trainee search */
.trainee-search-loading {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.trainee-search-loading::before {
    content: '👥';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Loading dots animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1e3c72;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Trainee Search Results Styles */
.trainee-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trainee-result-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.trainee-result-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.trainee-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.trainee-photo {
    position: relative;
    flex-shrink: 0;
}

.trainee-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    background: #f8f9fa;
}

.trainee-basic-info {
    flex: 1;
    min-width: 200px;
}

.trainee-basic-info h4 {
    margin: 0 0 8px 0;
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 700;
}

.service-number {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.rank-unit {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-weight: 500;
}

.center-info {
    margin: 0;
    color: #28a745;
    font-weight: 600;
    font-size: 0.95rem;
}

.trainee-contact {
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.trainee-contact p {
    margin: 0 0 3px 0;
}

.status-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid white;
}

.status-active {
    background-color: #28a745;
    color: white;
}

.status-completed {
    background-color: #6f42c1;
    color: white;
}

.status-inactive {
    background-color: #6c757d;
    color: white;
}

.trainee-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1e3c72;
}

.detail-section h5 {
    margin: 0 0 12px 0;
    color: #1e3c72;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.detail-item .label {
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    margin-right: 10px;
}

.detail-item .value {
    color: #212529;
    text-align: right;
    flex: 1;
}

.center-type-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.center-type-badge.appa {
    background-color: #e3f2fd;
    color: #1565c0;
}

.center-type-badge.ptc {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.center-type-badge.ctc {
    background-color: #fff3e0;
    color: #ef6c00;
}

.center-type-badge.dtc {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.center-type-badge.btc {
    background-color: #ffebee;
    color: #c62828;
}

.record-clean {
    color: #28a745;
    font-weight: 600;
}

.progress-item {
    margin-bottom: 12px;
}

.progress-item .label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.progress-bar {
    background-color: #e9ecef;
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.achievements {
    margin-bottom: 12px;
}

.achievement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #856404;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    border: 1px solid #ffc107;
}

.specializations {
    margin-top: 8px;
}

.specializations strong {
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.spec-tag {
    background-color: #1e3c72;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.trainee-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

/* Responsive adjustments for trainee results */
@media (max-width: 768px) {
    .trainee-header {
        flex-direction: column;
        text-align: center;
    }
    
    .trainee-contact {
        text-align: center;
    }
    
    .trainee-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .detail-item .value {
        text-align: left;
    }
    
    .trainee-actions {
        flex-direction: column;
    }
}

/* Enhanced loading animation for trainee search */
.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.search-loading::before {
    content: '🔍 ';
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.search-loading::after {
    content: 'Searching across all 28 training centers...';
    display: block;
    font-style: italic;
    margin-top: 10px;
}

/* URGENT DEPLOYMENT - HIDE INCOMPLETE FEATURES */
/* Hide incomplete sections for professional look */

/* Hide Quick Access section */
.info-card:has(h3:contains("Quick Access")) {
    display: none !important;
}

/* Hide Latest Announcements section */
.info-card:has(h3:contains("Latest Announcements")) {
    display: none !important;
}

/* Hide Quick Links section */  
.info-card:has(h3:contains("Quick Links")) {
    display: none !important;
}

/* Alternative targeting by position and content */
.info-card .quick-buttons {
    display: none !important;
}

.info-card .quick-links {
    display: none !important;
}

/* Hide by position (cards 1, 2, 3) */
.info-card:nth-child(1) {
    display: none !important;
}

.info-card:nth-child(2) {
    display: none !important;
}

.info-card:nth-child(3) {
    display: none !important;
}

/* Hide the entire info-cards section to remove blank space */
.info-cards-section {
    display: none !important;
}

/* URGENT DEPLOYMENT - COURSES PAGE */
/* Hide IPS Courses tab (uses existing database) */
.tab-button[data-tab="ips-officers-courses"] {
    display: none !important;
}

/* Hide IPS Courses content */
#ips-officers-courses {
    display: none !important;
}

/* Hide MongoDB status indicator for static content */
#mongodb-status {
    display: none !important;
}

/* URGENT DEPLOYMENT - STATIC CONTENT STYLING */

/* URGENT DEPLOYMENT - STATIC CONTENT STYLING */
/* New Recruit Training Information Styles */
.training-info-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.training-notice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.training-notice h4 {
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
}

.training-notice p {
    margin: 8px 0;
    font-size: 1.1em;
}

.urgent-button-container {
    margin-top: 20px;
}

.urgent-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.urgent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* Centers Information Styles */
.centers-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.centers-info h4 {
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.centers-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.centers-list li {
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #ecf0f1;
}

.info-button-container {
    text-align: center;
    margin-top: 20px;
}

.info-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

/* SCROLLING NOTICE BAR */
.scrolling-notice-bar {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #e55100;
    border-bottom: 3px solid #e55100;
}

.scrolling-content {
    display: inline-block;
    animation: scrollText 30s linear infinite;
    padding-left: 100%;
}

.scrolling-text {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Scrolling text link styles */
.scrolling-text-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.scrolling-text-link:hover {
    color: #fff3cd;
    text-decoration: none;
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.scrolling-text-link:hover .scrolling-text {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.scrolling-notice-bar:hover .scrolling-content {
    animation-play-state: paused;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scrolling-text {
        font-size: 0.95em;
    }
    
    .scrolling-content {
        animation-duration: 25s;
    }
}

/* NEW RECRUIT REGISTRATION SEARCH PAGE STYLES */
.registration-search-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.search-header {
    margin-bottom: 50px;
}

.search-header h2 {
    color: #1e3c72;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-weight: 700;
}

.search-description {
    color: #6c757d;
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.registration-search-box {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid #1e3c72;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.search-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.registration-search-box label {
    display: block;
    color: #1e3c72;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
}

.registration-input {
    width: 100%;
    max-width: 450px;
    padding: 20px 25px;
    font-size: 1.2em;
    border: 3px solid #dee2e6;
    border-radius: 12px;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.registration-input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 15px rgba(30, 60, 114, 0.3);
    transform: scale(1.02);
}

.registration-input::placeholder {
    color: #adb5bd;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

.search-results {
    margin-top: 40px;
    padding: 25px;
    border-radius: 12px;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.loading-message {
    color: #0c5460;
    background: #d1ecf1;
    border: 2px solid #bee5eb;
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
}

.info-message {
    color: #004085;
    background: #cce5ff;
    border: 2px solid #b3d9ff;
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.5;
}

/* RECRUIT DETAILS DISPLAY */
.recruit-details {
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border: 3px solid #28a745;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
}

.recruit-details h3 {
    color: #155724;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #28a745;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #28a745;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-item strong {
    color: #1e3c72;
    font-weight: 700;
    min-width: 150px;
}

.status-badge {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.print-btn, .clear-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.print-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
}

.clear-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #5a6268, #4e555b);
    transform: translateY(-2px);
}

/* Mobile responsive for recruit details */
@media (max-width: 768px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-item strong {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .print-btn, .clear-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Mobile responsive for registration search */
@media (max-width: 768px) {
    .registration-search-section {
        padding: 40px 0;
        min-height: 70vh;
    }
    
    .search-header h2 {
        font-size: 2.2em;
    }
    
    .search-description {
        font-size: 1.1em;
    }
    
    .registration-search-box {
        padding: 30px 20px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .registration-input {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    
    .search-btn {
        font-size: 1.1em;
        padding: 16px 30px;
    }
}
