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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 1rem;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #1e3a8a;
    color: white;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

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

.dropdown-content a {
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover {
    background: #1e3a8a;
    color: white;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Welcome Section */
.welcome-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

/* Departments Grid */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.department-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:not(.placeholder):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.department-card.placeholder {
    opacity: 0.6;
    border: 2px dashed #ccc;
}

.department-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.department-card h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.department-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: #d97706;
    color: white;
}

.btn-secondary:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

/* Quick Access */
.quick-access {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-access h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

/* Forms Page */
.forms-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e3a8a;
}

.form-embed {
    width: 100%;
    min-height: 600px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.form-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #1e3a8a;
}

.form-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-item p {
    color: #666;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    color: #666;
}

/* Department Logos */
.department-logo-card {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.department-logo-card:hover {
    transform: scale(1.1);
}

.department-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.department-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.inline-dept-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.department-section-header {
    display: flex;
    align-items: center;
}

/* Search Functionality */
.search-container {
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Form Cards with Department Badges */
.form-item-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #1e3a8a;
}

.form-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-department-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #1e3a8a;
    font-weight: 600;
}

.badge-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.form-card-content {
    padding: 1.5rem;
}

.form-card-content h4 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.form-card-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

#formsList {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }

    .department-header {
        flex-direction: column;
        text-align: center;
    }

    .department-logo {
        width: 60px;
        height: 60px;
    }

    .form-department-badge {
        font-size: 0.75rem;
    }

    .badge-logo {
        width: 20px;
        height: 20px;
    }
}
