* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.desktop {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../public/assets/Group.png') no-repeat bottom left;
    background-size: 40%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-zanzibar-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    pointer-events: none;
    z-index: 0;
}

.bg-zanzibar-1 {
    background: url('../public/assets/zanzibar_1.png') no-repeat bottom left;
    background-size: cover;
    opacity: 0.7;
    filter: blur(4px);
    mask-image: radial-gradient(circle at 20% 80%, black 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle at 20% 80%, black 0%, transparent 65%);
}

.clip-path-group {
    position: absolute;
    width: 50%;
    height: auto;
    top: 0;
    right: 0;
    opacity: 0.4;
    z-index: 1;
}

.group {
    position: absolute;
    width: 20%;
    height: auto;
    top: -20%;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.group-left {
    left: -00%;
}

.group-middle {
    left: 80%;
    transform: translateX(-50%);
    opacity: 0.4;
}

.group-right {
    right: -00%;
}

.registration-portal {
    position: absolute;
    width: 130px;
    height: 70px;
    top: 30px;
    left: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.portal-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-card {
    position: relative;
    width: 90%;
    max-width: 1100px;
    min-height: 160px;
    height: auto;
    margin: 100px auto 20px auto;
    background: #2F71F0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    text-align: center;
    gap: 8px;
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-background {
    position: absolute;
    width: 380px;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.8;
    mask-image: linear-gradient(to left, black 60%, transparent);
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent);
}

.card-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.card-title {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: 600;
    color: black;
    font-size: 28px;
    text-align: center;
    margin: 0;
    z-index: 2;
}

.card-logo {
    position: absolute;
    width: 130px;
    height: 70px;
    top: 30px;
    right: 40px;
    object-fit: contain;
    z-index: 10;
}

.know-more-btn {
    padding: 12px 32px;
    /* background: linear-gradient(135deg, #3b82f6, #2563eb); */
    background: #191A39;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-family: inherit;
    font-weight: 600;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
    margin-top: 10px;
}

.know-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.main-title {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 32px;
    z-index: 10;
    margin: 5px 0;
}

.ministry-text {
    font-family: inherit;
    font-weight: 500;
    color: #ffffff;
    font-size: 13.5px;
    z-index: 10;
    margin-top: -5px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.welcome-text {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    margin-bottom: -2px;
}

.main-card h2,
.main-card .welcome-text,
.main-card .ministry-text {
    position: static;
}

.illustration-container {
    position: fixed;
    bottom: 01px;
    right: -20px;
    width: 750px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.zanzibar-illustration {
    width: 100%;
    height: auto;
    mask-image: radial-gradient(circle at center, black 10%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 85%);
}

.header {
    display: none;
}

.menu-btn {
    position: absolute;
    top: 19px;
    left: 31px;
    width: 52px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.menu-btn:hover {
    opacity: 0.7;
}

.menu-btn svg {
    width: 24px;
    height: 24px;
}

.color-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    display: flex;
    z-index: 20;
}

.stripe {
    flex: 1;
    height: 8px;
}

.stripe-green {
    background: #32ca37;
}

.stripe-yellow {
    background: #f8f201;
}

.stripe-black {
    background: black;
    margin-top: 1px;
}

.stripe-blue {
    background: #13bee8;
}

.portals-container {
    position: relative;
    margin: 0 auto 0 auto;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    z-index: 5;
    padding: 10px;
}

.portals-container a {
    text-decoration: none;
}

.portal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 5px;
    width: 170px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-item:hover {
    transform: translateY(-10px);
    box-shadow: none;
}

.portal-item img {
    width: 75px;
    height: 75px;
    padding: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.portal-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.portal-item span {
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #1e293b;
    font-size: 13.5px;
    text-align: center;
    white-space: normal;
    width: 140px;
    margin-top: 1px;
}

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .main-card {
        width: 95%;
        padding: 30px;
    }

    .main-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .desktop {
        padding-top: 100px;
        /* Space for stacked logos */
    }

    .registration-portal,
    .card-logo {
        position: absolute;
        width: 100px;
        height: 60px;
        top: 20px;
    }

    .registration-portal {
        left: 20px;
    }

    .card-logo {
        right: 20px;
    }

    .main-card {
        height: auto;
        min-height: 200px;
        margin-top: 60px;
        padding: 30px 20px;
        align-items: center;
        /* Center content on mobile */
        text-align: center;
    }

    .main-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .welcome-text {
        font-size: 16px;
    }

    .card-background {
        width: 100%;
        opacity: 0.3;
    }

    .portals-container {
        gap: 20px;
        padding: 10px;
    }

    .portal-item {
        width: calc(50% - 20px);
        /* 2 items per row on tablet/mobile */
        min-width: 150px;
    }

    .illustration-container {
        display: none;

        /* Hide decorative element on small screens to save space */
    }
}

@media (max-width: 480px) {

    .registration-portal,
    .card-logo {
        width: 80px;
        height: 50px;
    }

    .main-title {
        font-size: 20px;
    }

    .portal-item {
        width: 100%;
        /* Single column on very small phones */
    }

    .know-more-btn {
        width: 100%;
        max-width: 250px;
    }
}