/* --- General & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header & Navigation --- */
header {
    background-color: #00bfae;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 36px;
    font-weight: 700;
}

nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li { margin: 0 20px; }

nav ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #3498db;
    border-radius: 5px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.pexels.com/photos/1103970/pexels-photo-1103970.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 42px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- New Search Bar & Dropdown --- */
.search-container {
    margin-top: 30px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #888;
}

.search-box {
    width: 100%;
    padding: 18px 50px; /* Padding for icon and clear button */
    font-size: 18px;
    border: 2px solid transparent;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box:focus {
    border-color: #00bfae;
    box-shadow: 0 0 15px rgba(0, 191, 174, 0.3);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.search-results-dropdown {
    position: absolute;
    width: 100%;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 999;
    text-align: left;
    color: #333;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.search-results-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.result-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f5f5f5;
}

.result-item .title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.result-item .snippet {
    font-size: 14px;
    color: #666;
}

.result-item mark, .form-card mark {
    background-color: #ffeb3b;
    color: black;
    padding: 0;
    border-radius: 2px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* --- Form Cards Section --- */
.form-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px auto;
    gap: 25px;
    max-width: 1400px;
    padding: 0 20px;
}

.form-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    width: 31%;
    min-width: 300px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.form-card.search-focus-highlight {
    box-shadow: 0 8px 24px rgba(0, 191, 174, 0.4);
    border-color: #00bfae;
    transform: scale(1.02);
}

.form-card h1, .form-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    flex-grow: 1;
}

.form-card h1 { font-size: 24px; color: #00bfae; }
.form-card p {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #555;
}

.form-card .serial-no {
    font-weight: bold;
    color: #777;
    margin-bottom: 10px;
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 5px;
    display: inline-block;
    border: none;
}

.btn:hover { background-color: #2980b9; }

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .form-card { width: 100%; }
    header h1, .hero h2 { font-size: 28px; }
    .search-box { width: 100%; }
}
.site-footer {
    background-color: #f0f0f0;
    padding: 20px 0;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    margin-top: 40px;
    border-top: 1px solid #ccc;
}

.site-footer p {
    margin: 0;
    font-size: 16px;
}

.site-footer strong {
    color: #0052D4;
}
