* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f4f4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    border: 1px solid darkcyan;
}

body.dark-mode .container {
    background: #2a2a2a;
    border: 1px solid #00bcd4;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.header-content h1 {
    margin-bottom: 0px;
}

h1 {
    text-align: center;
    color: #035049;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 600;
}

body.dark-mode h1 {
    color: #08bcad;
}

h2 {
    color: #e74c3c;
    margin: 20px 0 15px;
    font-size: 1.6em;
    font-weight: 500;
    border-bottom: 2px solid #0984e3;
    padding-bottom: 5px;
}

body.dark-mode h2 {
    color: #ff6b6b;
    border-bottom: 2px solid #00bcd4;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.discipline {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dfe6e9;
}

body.dark-mode .discipline {
    background: #333333;
    border: 1px solid #444444;
}

.discipline:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .discipline:hover {
    box-shadow: 0 4px 8px rgba(0, 188, 212, 0.3);
}

.discipline h3 {
    color: #009688;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
}

body.dark-mode .discipline h3 {
    color: #00bcd4;
}

.discipline p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #2d3436;
}

body.dark-mode .discipline p {
    color: #b0b0b0;
}

.discipline strong {
    color: #2d3436;
    font-weight: 600;
}

body.dark-mode .discipline strong {
    color: #e0e0e0;
}

/* Government Folder Header */
.gov-folder-header {
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.gov-folder-title {
    margin: 0;
    line-height: 1.2;
}

.gov-folder-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: transform 0.3s ease;
}

.gov-folder-link:hover {
    transform: translateY(-2px);
}

.gov-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #075444;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.8);
    letter-spacing: 1px;
}

body.dark-mode .gov-text {
    color: #00bcd4;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.8);
}

.folder-text {
    font-size: 1.8rem;
    font-weight: 400;
    color: #025440;
    text-shadow: 0 0 5px rgba(0, 204, 153, 0.7);
    letter-spacing: 0.5px;
}

body.dark-mode .folder-text {
    color: #80deea;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.7);
}

/* Second Header */
header {
    display: flex;
    justify-content: space-evenly;
    background: linear-gradient(90deg, #00c4b4, #009688);
    color: white;
    text-align: center;
    padding: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode header {
    background: linear-gradient(90deg, #00695c, #004d40);
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: white;
}

body.dark-mode header h1 {
    color: #e0e0e0;
}

header p {
    font-size: 1rem;
    color: white;
}

body.dark-mode header p {
    color: #b0b0b0;
}

.controls {
    display: grid;
    align-content: center;
}

.controls button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: #00c4b4;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.dark-mode .controls button {
    background-color: #00695c;
}

.controls button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 196, 180, 0.5);
}

body.dark-mode .controls button:hover {
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Responsive Design */
@media (max-width: 900px) {
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.95rem;
    }

    .controls button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    header {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .gov-text {
        font-size: 2rem;
    }

    .folder-text {
        font-size: 1.5rem;
    }

    .gov-folder-header {
        padding: 15px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
    }

    .discipline {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
        align-items: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.85rem;
    }

    .controls button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .controls {
        width: 50%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .gov-text {
        font-size: 1.6rem;
    }

    .folder-text {
        font-size: 1.2rem;
    }

    .gov-folder-link {
        gap: 5px;
    }

    body {
        padding: 5px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }

    .container {
        padding: 5px;
    }
}

@media (max-width: 330px) {
    .gov-folder-link {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}