* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    transition: all 0.3s ease;
    background: #f4f7fa;
}

/* Light Mode */
body.light-mode {
    background: linear-gradient(135deg, #ffffff 0%, #e6ecf0 100%);
    color: #1a2a44;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a2a44 0%, #2e3b55 100%);
    color: #e6ecf0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1596370744653-57b1e6c9a019?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    border-bottom: 3px solid #d4a017;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.container {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

.dark-mode .card {
    background: #2e3b55;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

h2 {
    border-radius: 10px 10px 0px 0px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a1e3b;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #d4a017, #b58900);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    padding-bottom: 2px;
}

.dark-mode h2 {
    /* color: #f1c40f; */
    background: linear-gradient(90deg, #f1c40f, #d4a017);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

h2 i {
    color: #d4a017;
}

.dark-mode h2 i {
    color: #f1c40f;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #1b6b6a;
    margin: 1.2rem 0 0.6rem;
}

.dark-mode h3 {
    color: #4db6ac;
}

p, li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

ul {
    list-style: none;
    margin-left: 0.8rem;
}

ul > li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.4rem;
}

/* Unique icons for top-level list items */
ul > li:nth-child(1)::before { content: '\f024'; } /* Flag for Nationality */
ul > li:nth-child(2)::before { content: '\f073'; } /* Calendar for Age Limit */
ul > li:nth-child(3)::before { content: '\f02d'; } /* Book for Educational Qualification */
ul > li:nth-child(4)::before { content: '\f500'; } /* Ring for Marital Status */
ul > li:nth-child(5)::before { content: '\f44b'; } /* Dumbbell for Physical Standards */
ul > li:nth-child(6)::before { content: '\f05a'; } /* Info for Other */

ul > li::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #d4a017;
    font-size: 1rem;
    top: 2px;
}

/* Sub-list items */
ul ul li::before {
    content: '\f111';
    font-size: 0.5rem;
    color: #b58900;
    top: 5px;
}

.dark-mode ul > li::before {
    color: #f1c40f;
}

.dark-mode ul ul li::before {
    color: #d4a017;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.dark-mode table {
    background: #3b4a5a;
}

th, td {
    padding: 0.8rem;
    border-bottom: 1px solid #dfe6e9;
    text-align: left;
    font-size: 0.9rem;
}

th {
    background: linear-gradient(90deg, #1a2a44, #2e3b55);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.dark-mode th {
    background: linear-gradient(90deg, #2e3b55, #485460);
}

tr:nth-child(even) {
    background: #f8f9fa;
}

.dark-mode tr:nth-child(even) {
    background: #485460;
}

tr:hover {
    background: #e9ecef;
}

.dark-mode tr:hover {
    background: #5a6a7a;
}

.toggle-button {
    /* position: fixed; */
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, #d4a017, #f1c40f);
    color: #1a2a44;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dark-mode .toggle-button {
    background: linear-gradient(90deg, #2e3b55, #485460);
    color: #e1b014;
}

.toggle-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.show-more {
    color: #d4a017;
    cursor: pointer;
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.show-more:hover {
    color: #b58900;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 0.8rem;
        margin: 1rem auto;
    }

    .card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
        margin: 0.8rem 0 0.5rem;
    }

    p, li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    ul > li {
        padding-left: 1.4rem;
    }

    ul > li::before {
        font-size: 0.9rem;
        top: 3px;
    }

    ul ul li::before {
        top: 4px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .toggle-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p, li {
        font-size: 0.85rem;
    }

    .card {
        padding: 0.3rem;
    }

    ul {
        margin-left: 0.2rem;
    }

    .toggle-button {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    table {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 0.2rem;
    }
}