* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    /* Added to make footer stick to bottom */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make main content area grow */
.form-cards-container {
    flex-grow: 1;
}

/* Header Section */
header {
    background-color: #00bfae;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 36px;
    font-weight: 700;
}

/* Navigation Bar */
nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center menu on desktop */
    align-items: center;
    position: relative; /* For mobile menu positioning */
}

nav ul.menu {
    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;
    display: block;
}

nav ul li a:hover {
    background-color: #3498db;
    border-radius: 5px;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute; /* Position hamburger on the right */
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.hero h2 {
    font-size: 36px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-top: 20px;
}

/* Form Cards Section */
.form-cards-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 20px;
}

.form-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 30%;
    text-align: center;
    padding: 20px;
    padding-top: 50px; /* Add padding for serial no */
    transition: transform 0.3s ease;
    position: relative; /* Added for serial no */
}

/* Style for Serial Number */
.serial-no {
    background-color: #00bfae;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 18px;
}

.form-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.form-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.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;
}

.btn:hover {
    background-color: #2980b9;
}

/* 'Coming Soon' message */
.coming-soon {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ccc;
    color: #666;
    border-radius: 5px;
    font-weight: 600;
    cursor: not-allowed;
}

/* --- NEW: Pagination Links --- */
.pagination {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.pagination .page-active {
    background-color: #00bfae;
    cursor: default;
}

/* --- NEW: No Results Message --- */
.no-results-message {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #777;
    padding: 50px;
}

/* Footer Section */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto; /* Pushes footer to bottom */
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-card {
        width: 100%; /* Make cards full width */
    }

    header h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 28px;
    }

    /* Mobile Menu Styles */
    .nav-container {
        justify-content: space-between;
    }
    
    nav ul.menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 50px; /* Position below nav bar */
        left: 0;
        background-color: #2c3e50;
    }

    nav ul.menu.active {
        display: flex; /* Show when active */
    }

    nav ul.menu li {
        text-align: center;
        margin: 10px 0;
        width: 100%;
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
    }
    
    /* Animate hamburger to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}