body {
    background-image: linear-gradient(to right top, #702963, #562f67, #3b3266, #1f335e, #003153);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.logo {
    max-width: 150px;
    height: auto;
}

header h1 {
    margin: 33px 0 0;
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navigation h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-container > div {
    flex: 1;
    min-width: 0; /* Prevents overflow on smaller screens */
}

.nav-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for tables */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-table th {
    background-color: #F73859;
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s, color 0.2s;
}

.nav-table a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    font-size: 1rem;
    transition: color 0.2s;
}

/* Hover effects */
.nav-table tr:hover {
    background-color:  #ffffff;
}

.nav-table td:hover,
.nav-table td:hover a {
    color: #F73859 !important;
}

/* Style for the centered "TABLICE REFERENCYJNE" link */
#tab_ref{
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #ffffff;
    padding: 10px 20px;
    display: inline-block;
    
}
#tab_ref:hover {
    background-color: #F73859;
    color: #ffffff;
    transform: translateY(-3px);
}
.nav-container > div > div {
    text-align: center;
    margin-top: 20px;
}

.nav-container > div > div a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 20px;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.nav-container > div > div a:hover {
    background-color: #F73859;
    color: #ffffff;
    transform: translateY(-3px);
}
.navigation hr {
    color: white;
}


footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer p {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.9;
    margin: 5px 0;
}

footer a {
    color: #F73859;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}
h2 {
  font-size: 2em; /* Adjust as needed for main heading */
  font-weight: bold; /* Bold for main heading */
}

h2 span {
  font-size: 0.6em; /* Proportionally smaller than h2 */
  font-weight: normal; /* Less bold than h2 */
  display: block; /* Ensures the span appears below the main heading text */
}
/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .navigation h2 {
        font-size: 1.5rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-table th {
        font-size: 1rem;
    }

    .nav-table td {
        font-size: 0.9rem;
    }

    .nav-container > div > div a {
        font-size: 1rem;
    }
}
.subject-card{
    margin-top: 33px
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 120px;
    }

    .navigation h2 {
        font-size: 1.2rem;
    }

    .nav-table th {
        font-size: 0.9rem;
        padding: 8px;
    }

    .nav-table td {
        font-size: 0.8rem;
        padding: 8px;
    }

    .nav-container > div > div a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    footer p {
        font-size: 0.8rem;
    }
}