body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 15px;
    padding-left: 10%;
    padding-right: 10%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content {
    flex-grow: 1;
    padding: 20px;
    padding-top: 40px;
    text-align: center;
}

.uni-logo,
.uvpn-logo {
    max-height: 100px; /* Adjusted for mobile screens */
    margin-top: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

/* Language Switcher Styling */
.header-actions {
    display: flex;
    align-items: center;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.lang-switch:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.primary-card {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    border-top-width: 6px;
    box-shadow: 0 8px 26px rgba(7, 119, 189, 0.18);
    position: relative;
}

.primary-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: #0777bd;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.primary-card .card-title {
    margin-top: 18px;
}

.primary-card .card-description {
    margin-bottom: 26px;
}

.primary-card .card-actions {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.alternative-label {
    font-size: 17px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.alternative-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.profile-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
    border-top: 4px solid;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.profile-card.udp {
    border-top-color: #0777bd;
}

.profile-card.tcp {
    border-top-color: #07bd9f;
}

.profile-card.connect {
    border-top-color: #a2bd07;
}

.secondary-card {
    background-color: #fafafa;
    opacity: 0.96;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 12px 0;
    color: #333;
}

.card-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.card-link {
    display: block;
    background-color: #0777bd;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

.card-link.download {
    background-color: #5f6b78;
}

.profile-card.tcp .card-link.install {
    background-color: #07bd9f;
}

.profile-card.connect .card-link.install {
    background-color: #a2bd07;
}

.card-link.install:hover {
    background-color: #1b3e74;
}

.profile-card.tcp .card-link.install:hover {
    background-color: #1b7461;
}

.profile-card.connect .card-link.install:hover {
    background-color: #6b7d05;
}

.card-link.download:hover {
    background-color: #3f4750;
}

.notes-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
    font-size: 13px;
}

.notes-section p {
    margin: 15px 0;
    line-height: 1.6;
}

.footer {
    text-align: center;
    background-color: rgb(59, 59, 59);
    color: white;
    padding: 20px;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .cards-container {
        gap: 18px;
    }
    .alternative-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media screen and (max-width: 600px) {
    .header {
        padding-left: 5%;
        padding-right: 5%;
    }
    .content {
        padding-top: 15%;
    }
    .uni-logo,
    .uvpn-logo {
        max-height: 35px;
    }
    .cards-container {
        gap: 16px;
        padding: 0 10px;
    }
    .profile-card {
        padding: 20px;
    }
    .primary-badge {
        top: -12px;
        right: 12px;
        font-size: 12px;
    }
    .card-title {
        font-size: 20px;
    }
    .card-description {
        font-size: 14px;
    }
    .card-link {
        font-size: 15px;
    }
    .card-actions {
        grid-template-columns: 1fr;
    }
    .alternative-label {
        font-size: 15px;
    }
    .notes-section {
        padding: 20px 10px;
        margin-top: 30px;
        font-size: 12px;
    }
}