/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-top: 70px; /* Space for fixed header */
    padding-bottom: 60px; /* Space for fixed footer */
}

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

/* Fixed Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a5276, #2874a6);
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    height: 70px;
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.nav-marquee marquee {
    width: 100%;
}

.nav-logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 2px solid white;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sliding Navigation Panel */
.nav-panel {
    position: fixed;
    top: 70px;
    left: -300px;
    width: 300px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
    padding-bottom: 70px; /* Extra padding to prevent footer overlap */
}

.nav-panel.open {
    left: 0;
}

.nav-panel a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.nav-panel a:hover {
    background: #f0f8ff;
    color: #1a5276;
}

.nav-panel a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Header styles */
header {
    background: white; 
    color: #004080;
    padding: 20px 0 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 70px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-img {
    max-height: 80px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.welcome {
    font-size: 1.3rem;
    margin: 15px 0;
    font-weight: 500;
}

/* Home Page Only Sections */
.home-only {
    display: block;
}

/* Image Slideshow */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slideshow-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 82, 118, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Quote of the day */
.quote-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-left: 5px solid #2874a6;
}

.quote-container h3 {
    color: #1a5276;
    margin-bottom: 15px;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.quote-author {
    font-weight: bold;
    color: #2874a6;
}

/* Social Media Section */
.social-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.social-section h3 {
    color: #1a5276;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #1a5276;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: #2874a6;
}

.email-contact {
    margin-top: 15px;
    font-size: 1.1rem;
}

.email-contact a {
    color: #1a5276;
    text-decoration: none;
}

.email-contact a:hover {
    text-decoration: underline;
}

/* Page content styles */
.page-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.section-title {
    color: #1a5276;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2874a6;
    border-radius: 3px;
}

/* Staff profile styles - MODIFIED: Removed blue border, adjusted shadow */
.staff-profile {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.staff-photo {
    width: 180px;
    height: 220px; /* Taller for portrait aspect ratio */
    border-radius: 15px; /* Rounded corners */
    object-fit: cover;
    /* Removed blue border */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); /* Softer, more neutral shadow */
    margin: 0 auto 20px;
    display: block;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.staff-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.staff-name {
    font-size: 1.8rem;
    color: #1a5276;
    margin-bottom: 5px;
}

.staff-position {
    font-size: 1.2rem;
    color: #2874a6;
    margin-bottom: 15px;
    font-weight: 600;
}

.staff-qualifications {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 5px;
}

/* Content styles */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: #1a5276;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: #2874a6;
}

.service-list {
    list-style-type: none;
    padding-left: 0;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: center;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li i {
    margin-right: 10px;
    color: #2874a6;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a5276;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #2874a6;
    box-shadow: 0 0 0 2px rgba(40, 116, 166, 0.2);
}

.btn-submit {
    background: #1a5276;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #2874a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Quiz styles */
.quiz-container {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.quiz-question {
    margin-bottom: 20px;
}

.quiz-options {
    margin-left: 20px;
}

.quiz-option {
    margin-bottom: 10px;
}

/* E-learning resources */
.resource-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

.resource-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #2874a6;
}

/* Chat styles */
.chat-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

/* Help page styles */
.help-form {
    margin-bottom: 30px;
}

/* Resource download styles */
.resource-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 5px;
    margin-bottom: 10px;
}

.resource-info {
    flex: 1;
}

.download-btn {
    background: #1a5276;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #2874a6;
}

/* Video player styles */
.video-container {
    margin: 20px 0;
    text-align: center;
}

.video-player {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
}

/* Google Form Container */
.google-form-container {
    width: 100%;
    height: 500px; /* Reduced height for better fit */
    overflow: hidden;
    border: none;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.help-form-container {
    width: 100%;
    height: 600px; /* Specific height for help forms */
    overflow: hidden;
    border: none;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Fixed Footer */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a5276;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.footer-copyright {
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: center;
    padding: 0 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .staff-photo {
        width: 150px;
        height: 180px; /* Adjusted for portrait aspect ratio */
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .staff-profile {
        padding: 15px;
    }
    
    .logo-img {
        max-height: 70px;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .welcome {
        font-size: 1.1rem;
    }
    
    .google-form-container {
        height: 600px; /* Adjusted for mobile */
    }
    
    .help-form-container {
        height: 500px; /* Adjusted for mobile */
    }
    
    .nav-marquee {
        font-size: 1rem;
    }
    
    .mySlides img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-height: 60px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .welcome {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-marquee {
        font-size: 0.9rem;
    }
    
    .mySlides img {
        height: 250px;
    }
    
    .top-nav {
        padding: 10px;
    }
    
    .menu-toggle {
        padding: 6px 8px;
    }
    
    .nav-logo {
        height: 40px;
        width: 40px;
    }
    
    .google-form-container {
        height: 700px; /* More height for very small screens */
    }
    
    .help-form-container {
        height: 550px; /* More height for very small screens */
    }
}