/* Green Hero Card */
.hero-card {
    width: 100%;
    margin: 0;
    background: var(--absher-green-gradient);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 24px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 107, 56, 0.25);
}

/* Background Pattern (Asset 27.svg) fading down and right */
.hero-bg-pattern {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 220px;
    height: 220px;
    color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle at 15% 15%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0) 80%);
    mask-image: radial-gradient(circle at 15% 15%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 45%, rgba(0, 0, 0, 0) 80%);
}

.hero-bg-pattern svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Top Action Buttons */
.top-action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

.action-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.action-icon-btn:active {
    opacity: 0.7;
}

.action-icon-btn svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.8;
}

/* Logos Area */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.absher-logo {
    height: 56px;
    width: auto;
    display: block;
}

.emblem-img {
    height: 58px;
    width: 58px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.hero-title {
    text-align: center;
    font-size: 20.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

/* Log In CTA */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background-color: var(--absher-mint);
    color: var(--absher-mint-text);
    font-size: 16.5px;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, background-color 0.15s ease;
    position: relative;
    z-index: 2;
}

.login-btn:active {
    transform: scale(0.985);
    background-color: var(--absher-mint-hover);
}

/* Public Services Section */
.services-section {
    padding: 24px 18px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 2px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.see-all-btn {
    color: #8fa199;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.see-all-btn:hover {
    color: var(--absher-mint);
}

/* Horizontal Carousel with 2 Rows */
.services-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 0 162px;
    scroll-snap-align: start;
}

/* Service Tile */
.service-tile {
    background-color: #24272c;
    border-radius: 20px;
    padding: 20px 16px 18px 16px;
    height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: background-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.service-tile:active {
    background-color: var(--card-bg-active);
    transform: scale(0.97);
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--absher-mint);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.6;
}

.service-tile-label {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.15px;
}

/* Footer Section */
.app-footer {
    padding: 28px 18px 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.powered-nic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #7f8691;
}

.nic-icon {
    width: 15px;
    height: 15px;
}

.copyright-notice {
    font-size: 11.5px;
    font-weight: 400;
    color: #7f8691;
}
