/* Base styles */
:root {
    --primary-color: #E33D4F;
    --secondary-color: #8E098B;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --medium-gray: #ccc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility - visually hide labels but keep them accessible for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 100px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}


.form-link a {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(227, 61, 79, 0.3);
}

.form-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 61, 79, 0.4);
}

.form-link i {
    margin-left: 5px;
    font-size: 0.9rem;
}

.form-link .link-text {
    display: inline;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
        max-width: 220px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .form-link a {
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-link .link-text {
        display: none;
    }
    
    .form-link i {
        margin-left: 0;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    padding: 2rem 5%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-filters {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.2));
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Filters Styling in Hero */
.filters-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

#search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--medium-gray);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.select-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.filter-group {
    width: 100%;
}

select {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--medium-gray);
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    min-width: 200px;
    cursor: pointer;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-filter {
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.tag-filter:hover {
    background-color: rgba(227, 61, 79, 0.1);
}

.tag-filter.active {
    background-color: var(--primary-color);
    color: var(--white);
}

#clear-filters {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--white);
    background-color: transparent;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

#clear-filters:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Important Notice */
.note-container.important-notice {
    display: flex;
    margin: 0;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.notice-content p {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .note-container.important-notice {
        flex-direction: column;
    }
    
    .notice-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5% 3rem;
}

.card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.card-designation {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.card-year {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(142, 9, 139, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
}

/* No results message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--dark-gray);
    color: var(--white);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 5% 2.5rem;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content, .hero-filters {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .hero p {
        margin: 0 auto;
    }
    
    .filters-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    #search-input {
        padding: 0.8rem 1rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .select-filters {
        grid-template-columns: 1fr;
    }
    
    .note-container.important-notice {
        margin-top: 2rem;
    }
    
    select, .tag-filters, #clear-filters {
        width: 100%;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}