/* Custom Styles for Dinas Tenaga Kerja Kabupaten Lanny Jaya */

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    color: #333;
    background-color: #fafafa;
}

main {
    flex: 1 0 auto;
}

/* Logo Styles */
.logo-img {
    height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(21, 101, 192, 0.8), rgba(13, 71, 161, 0.9)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.card.hoverable {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.hoverable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-panel.hoverable {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-panel.hoverable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Stats Cards */
.card-panel.center-align {
    padding: 20px;
}

.card-panel.center-align i {
    margin-bottom: 10px;
}

.card-panel.center-align h5 {
    margin: 10px 0;
    font-weight: 700;
}

/* Service Cards */
.card .card-content {
    padding: 20px;
}

.card .card-image img {
    height: 200px;
    object-fit: cover;
}

/* Testimonial Cards */
.card.blue-grey.lighten-5 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card.blue-grey.lighten-5 .card-content {
    flex-grow: 1;
}

/* Navigation Enhancements */
nav .brand-logo {
    display: flex;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.sidenav {
    width: 300px;
}

.sidenav .user-view {
    padding: 32px 32px 0;
}

.sidenav .user-view .background {
    height: 150px;
}

.sidenav .user-view img.circle {
    height: 64px;
    width: 64px;
}

.sidenav .user-view .name, .sidenav .user-view .email {
    font-weight: 500;
}

/* Footer Styles */
footer.page-footer {
    margin-top: 0;
    padding-top: 0;
}

footer .social-icons a {
    margin-right: 15px;
    font-size: 24px;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #90caf9 !important;
}

/* Contact Form */
.contact-form {
    margin-top: 20px;
}

.input-field .prefix {
    color: #1565c0;
}

.input-field input:focus:not([type]):not(.browser-default),
.input-field input:focus:not([type]):not(.browser-default),
.input-field textarea:focus.materialize-textarea {
    border-bottom: 1px solid #1565c0 !important;
    box-shadow: 0 1px 0 0 #1565c0 !important;
}

/* Floating Action Button */
.fixed-action-btn ul {
    bottom: 64px;
}

/* Responsive Adjustments */
@media only screen and (max-width: 600px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .hero-section .btn-large {
        display: block;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .card .card-image img {
        height: 150px;
    }
}

@media only screen and (min-width: 601px) and (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.7s ease-out;
}

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

/* Service Page Styles */
.service-detail {
    padding: 20px 0;
}

.service-detail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-detail h3 {
    color: #1565c0;
    margin-bottom: 20px;
}

.service-detail h4 {
    color: #1976d2;
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-detail ul {
    margin-left: 20px;
}

.service-detail ul li {
    margin-bottom: 10px;
}

/* News Page Styles */
.news-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-item h4 {
    color: #1565c0;
    margin-bottom: 10px;
}

.news-item .news-meta {
    color: #757575;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* About Page Styles */
.about-content {
    padding: 20px 0;
}

.about-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.about-content h3 {
    color: #1565c0;
    margin-bottom: 20px;
}

.about-content h4 {
    color: #1976d2;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Vision Mission Page Styles */
.vision-mission {
    padding: 20px 0;
}

.vision-mission .card-panel {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vision-mission h3 {
    color: #1565c0;
    margin-bottom: 20px;
}

.vision-mission h4 {
    color: #1976d2;
    margin-bottom: 15px;
}

/* Organization Structure Page Styles */
.org-structure {
    padding: 20px 0;
}

.org-structure img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.contact-info {
    padding: 20px 0;
}

.contact-info .card-panel {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #1565c0;
    margin-bottom: 20px;
}

.contact-info .contact-item {
    margin-bottom: 20px;
}

.contact-info .contact-item i {
    color: #1565c0;
    margin-right: 15px;
    vertical-align: middle;
}

/* Map Styles */
.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1565c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #1565c0;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, .fixed-action-btn, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .card, .card-panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}