/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Login page styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me input {
    margin-right: 0.5rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5a6fd5;
}

/* Navigation styles */
nav {
    background: #333;
    padding: 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin-left: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

/* Main content styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Universal image styling for all pages */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Profile page styles */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
	gap: 2rem;
}

.profile-img-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
    flex-shrink: 0;
	border: 4px solid #667eea;
}

.profile-img {
    width: 60%;
    height: 50%;
    object-fit: auto;
    object-position: left;
	transition: transform 0.3s ease;
}

.bio {
    flex: 1;
}

.profile-summary {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profile-summary h2 {
    color: #333;
    margin-bottom: 1rem;
}

/* Back button */
.back-button {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #5a6fd5;
}

/* Year summary */
.year-summary {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Hobbies page styles - Improved image handling */
.hobby-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hobby-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.hobby-img-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 0;
}

.hobby-img {
    width: 60%;
    height: 40%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.hobby-img:hover {
    transform: scale(1.05);
}

.audio-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #eee;
    border-radius: 4px;
}

/* Career goals styles - Improved image handling */
.career-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.career-goal {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.career-img-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 0;
}

.career-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.career-img:hover {
    transform: scale(1.05);
}

.career-goal ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.career-goal li {
    margin-bottom: 0.5rem;
}

/* Home page specific styles */
.welcome-message {
    background-color: #f0f4ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.datetime {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.bio-details {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.bio-details h2 {
    color: #333;
    margin-bottom: 1rem;
}

.bio-details ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.bio-details li {
    margin-bottom: 0.5rem;
}

/* Improved slideshow styles for all pages */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
	 box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.slide {
    display: none;
    width: 100%;
}

.slide-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide-img {
    width: 120%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    max-width: 80%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10;
    border: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.slide-dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
}

.active-dot {
    background-color: #717171;
}

/* Table styles */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.results-table th, .results-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.results-table th {
    background-color: #f2f2f2;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f1f1f1;
}

/* Video styles */
.video-container {
    margin: 2rem 0;
    text-align: center;
}

video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer styles */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Gallery page styles (if you have one) */
.gallery-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-img-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 1rem;
        flex-direction: column;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        margin-left: 1rem;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* Adjust image heights for mobile */
    .slide-image-container {
        height: 300px;
    }
    
    .hobby-img-container,
    .career-img-container {
        height: 250px;
    }
    
    .gallery-section {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-img-container {
        height: 200px;
    }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .slide-image-container {
        height: 250px;
    }
    
    .hobby-img-container,
    .career-img-container {
        height: 200px;
    }
    
    .profile-img-container {
        width: 120px;
        height: 120px;
    }
    
    .gallery-section {
        grid-template-columns: 1fr;
    }
    
    .gallery-img-container {
        height: 200px;
    }
}

/* Print styles for better printing experience */
@media print {
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    .slideshow-container,
    .video-container,
    nav,
    footer {
        display: none;
    }
}